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 b88a848758a8f..f114c07dbc21c 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 @@ -14,6 +14,7 @@ import { refreshSavedObjectIndices } from '../../refresh_index'; const MAX_RETRIES = 2; const ATTEMPT_TIMEOUT = 120000; +const TOTAL_TIMEOUT = ATTEMPT_TIMEOUT * (1 + MAX_RETRIES); /** * Installs latest available non-prerelease prebuilt rules package `security_detection_engine`. @@ -46,7 +47,7 @@ export const installPrebuiltRulesPackageViaFleetAPI = async ( }, { retryCount: MAX_RETRIES, - timeout: ATTEMPT_TIMEOUT, + timeout: TOTAL_TIMEOUT, } ); @@ -87,7 +88,7 @@ export const installPrebuiltRulesPackageByVersion = async ( }, { retryCount: MAX_RETRIES, - timeout: ATTEMPT_TIMEOUT, + timeout: TOTAL_TIMEOUT, } ); 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 f7a7337d40241..daf59c591b107 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 @@ -19,6 +19,7 @@ import { refreshSavedObjectIndices } from '../../refresh_index'; const MAX_RETRIES = 2; const ATTEMPT_TIMEOUT = 120000; +const TOTAL_TIMEOUT = ATTEMPT_TIMEOUT * (1 + MAX_RETRIES); /** * Installs the `security_detection_engine` package via fleet API. This will @@ -60,7 +61,7 @@ export const installPrebuiltRulesFleetPackage = async ({ }, { retryCount: MAX_RETRIES, - timeout: ATTEMPT_TIMEOUT, + timeout: TOTAL_TIMEOUT, } ); @@ -94,7 +95,7 @@ export const installPrebuiltRulesFleetPackage = async ({ }, { retryCount: MAX_RETRIES, - timeout: ATTEMPT_TIMEOUT, + timeout: TOTAL_TIMEOUT, } );