Fix mustache search template test (#43120)

This commit fixes a race in the test for the new response format with
search templates. The test indexes a document and then executes a
search with the expectation of 0 results. In some instances, the index
will refresh prior to the search execution and 1 hit will be found
causing the test fail.

Closes #42664
This commit is contained in:
Jay Modi 2019-06-12 09:36:04 -06:00 committed by jaymode
parent 5be0fb32f8
commit b8b24ccd8e
1 changed files with 2 additions and 1 deletions

View File

@ -137,6 +137,7 @@
index: test
id: 1
body: {}
refresh: true
- do:
put_script:
@ -149,5 +150,5 @@
search_template:
body: { "id": "template_1", "params": {} }
- match: { hits.total.value: 0 }
- match: { hits.total.value: 1 }
- match: { hits.total.relation: eq }