diff --git a/x-pack/test/security_solution_api_integration/test_suites/detections_response/utils/retry.ts b/x-pack/test/security_solution_api_integration/test_suites/detections_response/utils/retry.ts index 6362149daf4af..b545519b7df35 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/detections_response/utils/retry.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/detections_response/utils/retry.ts @@ -14,10 +14,12 @@ export const retry = async ({ test, retryService, retries, + timeout, }: { test: () => Promise; retryService: RetryService; retries: number; + timeout?: number; }): Promise => { let retryAttempt = 0; const response = await retryService.try( @@ -33,7 +35,8 @@ export const retry = async ({ return test(); }, undefined, - 200 + 200, + timeout ); // Now throw the error in order to fail the test. diff --git a/x-pack/test/security_solution_api_integration/test_suites/detections_response/utils/rules/prebuilt_rules/install_fleet_package_by_url.ts b/x-pack/test/security_solution_api_integration/test_suites/detections_response/utils/rules/prebuilt_rules/install_fleet_package_by_url.ts index 5eb1c01babad5..6c28869799de3 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/detections_response/utils/rules/prebuilt_rules/install_fleet_package_by_url.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/detections_response/utils/rules/prebuilt_rules/install_fleet_package_by_url.ts @@ -42,6 +42,7 @@ export const installPrebuiltRulesPackageViaFleetAPI = async ( }, retryService, retries: 2, + timeout: 120000, }); await refreshSavedObjectIndices(es); @@ -80,6 +81,7 @@ export const installPrebuiltRulesPackageByVersion = async ( }, retryService, retries: 2, + timeout: 120000, }); await refreshSavedObjectIndices(es); diff --git a/x-pack/test/security_solution_api_integration/test_suites/detections_response/utils/rules/prebuilt_rules/install_prebuilt_rules_fleet_package.ts b/x-pack/test/security_solution_api_integration/test_suites/detections_response/utils/rules/prebuilt_rules/install_prebuilt_rules_fleet_package.ts index bfc807a85ba25..d9b6901f27288 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/detections_response/utils/rules/prebuilt_rules/install_prebuilt_rules_fleet_package.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/detections_response/utils/rules/prebuilt_rules/install_prebuilt_rules_fleet_package.ts @@ -57,6 +57,7 @@ export const installPrebuiltRulesFleetPackage = async ({ }, retryService, retries: 2, + timeout: 120000, }); await refreshSavedObjectIndices(es); @@ -88,6 +89,7 @@ export const installPrebuiltRulesFleetPackage = async ({ }, retryService, retries: 2, + timeout: 120000, }); await refreshSavedObjectIndices(es);