From af807acf4155ea4a5bc41cb6518ad02e551b02d2 Mon Sep 17 00:00:00 2001 From: Robert Oskamp Date: Mon, 14 Sep 2020 17:47:13 +0200 Subject: [PATCH] [ML] Functional tests - increase wait time for DFA start (#77307) (#77323) This PR stabilizes the DFA creation tests on cloud environments by increasing the timeout after DFA start. --- x-pack/test/functional/services/ml/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/test/functional/services/ml/api.ts b/x-pack/test/functional/services/ml/api.ts index 5c9718539f47bc..35d0439f69740c 100644 --- a/x-pack/test/functional/services/ml/api.ts +++ b/x-pack/test/functional/services/ml/api.ts @@ -268,7 +268,7 @@ export function MachineLearningAPIProvider({ getService }: FtrProviderContext) { async waitForDFAJobTrainingRecordCountToBePositive(analyticsId: string) { await retry.waitForWithTimeout( `'${analyticsId}' to have training_docs_count > 0`, - 10 * 1000, + 60 * 1000, async () => { const trainingRecordCount = await this.getDFAJobTrainingRecordCount(analyticsId); if (trainingRecordCount > 0) {