From ebf4bd28899f819e1b2dec0ee0a36816f7a9f77a Mon Sep 17 00:00:00 2001 From: jpdjere Date: Wed, 10 Jan 2024 11:29:49 +0100 Subject: [PATCH] Fix constant names --- .../utils/retry_delete_by_query_conflicts.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/x-pack/test/security_solution_api_integration/test_suites/detections_response/utils/retry_delete_by_query_conflicts.ts b/x-pack/test/security_solution_api_integration/test_suites/detections_response/utils/retry_delete_by_query_conflicts.ts index a5c0ac6c779a6..1d2cd8b24239c 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/detections_response/utils/retry_delete_by_query_conflicts.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/detections_response/utils/retry_delete_by_query_conflicts.ts @@ -9,10 +9,10 @@ import { DeleteByQueryResponse } from '@elastic/elasticsearch/lib/api/types'; import { ToolingLog } from '@kbn/tooling-log'; // Number of times to retry when conflicts occur -export const RetryForConflictsAttempts = 2; +const RETRY_ATTEMPTS = 2; // Delay between retries when conflicts occur -export const RetryForConflictsDelay = 200; +const RETRY_DELAY = 200; /* * Retry an Elasticsearch deleteByQuery operation if it runs into 409 Conflicts, @@ -22,8 +22,8 @@ export async function retryIfDeleteByQueryConflicts( logger: ToolingLog, name: string, operation: () => Promise, - retries: number = RetryForConflictsAttempts, - retryDelay: number = RetryForConflictsDelay + retries: number = RETRY_ATTEMPTS, + retryDelay: number = RETRY_DELAY ): Promise { const operationResult = await operation(); if (!operationResult.failures || operationResult.failures?.length === 0) {