From f420018bb299698a8c80cf2dcc9be11bb3950ace Mon Sep 17 00:00:00 2001 From: Igor Motov Date: Wed, 15 Jul 2020 09:49:16 -0400 Subject: [PATCH] EQL: Fix async EQL Rest test (#59556) Unfortunately, we cannot guarantee that the execution will be truly async even with 0ms timeout since we cannot block the execution. So, we need to modify the test to work in both async and non-async mode. Closes #59416 --- .../src/test/resources/rest-api-spec/test/eql/10_basic.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/x-pack/plugin/eql/qa/rest/src/test/resources/rest-api-spec/test/eql/10_basic.yml b/x-pack/plugin/eql/qa/rest/src/test/resources/rest-api-spec/test/eql/10_basic.yml index ef233b286a88..3a9ce905d71c 100644 --- a/x-pack/plugin/eql/qa/rest/src/test/resources/rest-api-spec/test/eql/10_basic.yml +++ b/x-pack/plugin/eql/qa/rest/src/test/resources/rest-api-spec/test/eql/10_basic.yml @@ -32,11 +32,10 @@ setup: eql.search: index: eql_test wait_for_completion_timeout: "0ms" + keep_on_completion: true body: query: "process where user = 'SYSTEM'" - - match: {is_running: true} - - match: {is_partial: true} - is_true: id - set: {id: id}