diff --git a/x-pack/test/detection_engine_api_integration/utils.ts b/x-pack/test/detection_engine_api_integration/utils.ts index 0db50cf62b34b..8f05a7fd94487 100644 --- a/x-pack/test/detection_engine_api_integration/utils.ts +++ b/x-pack/test/detection_engine_api_integration/utils.ts @@ -874,7 +874,7 @@ export const waitFor = async ( functionToTest: () => Promise, functionName: string, log: ToolingLog, - maxTimeout: number = 800000, + maxTimeout: number = 100000, timeoutWait: number = 250 ): Promise => { let found = false; @@ -1324,7 +1324,7 @@ export const waitForAlertToComplete = async ( async () => { const response = await supertest.get(`/api/alerts/alert/${id}/state`).set('kbn-xsrf', 'true'); if (response.status !== 200) { - log.error( + log.debug( `Did not get an expected 200 "ok" when waiting for an alert to complete (waitForAlertToComplete). CI issues could happen. Suspect this line if you are seeing CI issues. body: ${JSON.stringify( response.body )}, status: ${JSON.stringify(response.status)}` @@ -1357,7 +1357,7 @@ export const waitForRuleSuccessOrStatus = async ( .set('kbn-xsrf', 'true') .query({ id }); if (response.status !== 200) { - log.error( + log.debug( `Did not get an expected 200 "ok" when waiting for a rule success or status (waitForRuleSuccessOrStatus). CI issues could happen. Suspect this line if you are seeing CI issues. body: ${JSON.stringify( response.body )}, status: ${JSON.stringify(response.status)}` @@ -1411,9 +1411,7 @@ export const waitForSignalsToBePresent = async ( return signalsOpen.hits.hits.length >= numberOfSignals; }, 'waitForSignalsToBePresent', - log, - 20000, - 250 // Wait 250ms between tries + log ); };