1
0
Эх сурвалжийг харах

ESQL: Harden asyn tests (#104272)

I've seen errors in the async tests where they expect to return an `id`
but the results come back too fast! Well, this forces us to return the
`id` even if we have the results. Then the test can happily fetch by the
`id` every time.

Closes #104251
Nik Everett 1 жил өмнө
parent
commit
731e5cb377

+ 1 - 0
x-pack/plugin/esql/qa/server/single-node/src/yamlRestTest/java/org/elasticsearch/xpack/esql/qa/single_node/EsqlClientYamlAsyncSubmitAndFetchIT.java

@@ -31,6 +31,7 @@ public class EsqlClientYamlAsyncSubmitAndFetchIT extends AbstractEsqlClientYamlI
             ApiCallSection copy = doSection.getApiCallSection().copyWithNewApi("esql.async_query");
             for (Map<String, Object> body : copy.getBodies()) {
                 body.put("wait_for_completion_timeout", "0ms");
+                body.put("keep_on_completion", true);
             }
             doSection.setApiCallSection(copy);