From d034480e89f9219beb4d9235e3431166ecc1ed73 Mon Sep 17 00:00:00 2001 From: Gidi Meir Morris Date: Wed, 5 Aug 2020 14:30:48 +0100 Subject: [PATCH] Update task_manager_integration.js --- .../test_suites/task_manager/task_manager_integration.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/test/plugin_api_integration/test_suites/task_manager/task_manager_integration.js b/x-pack/test/plugin_api_integration/test_suites/task_manager/task_manager_integration.js index 53dfa1b5b204..c87a5039360b 100644 --- a/x-pack/test/plugin_api_integration/test_suites/task_manager/task_manager_integration.js +++ b/x-pack/test/plugin_api_integration/test_suites/task_manager/task_manager_integration.js @@ -500,7 +500,7 @@ export default function ({ getService }) { expect(task.status).to.eql('running'); }); - await delay(1000); + await ensureTasksIndexRefreshed(); // first runNow should fail const failedRunNowResult = await runTaskNow({ @@ -522,7 +522,7 @@ export default function ({ getService }) { expect(task.status).to.eql('idle'); }); - await delay(1000); + await ensureTasksIndexRefreshed(); // second runNow should be successful const successfulRunNowResult = runTaskNow({