summaryrefslogtreecommitdiff
path: root/packages/core/src/utils/retry.test.ts
diff options
context:
space:
mode:
authorHyeladi Bassi <[email protected]>2025-07-27 19:18:27 +0100
committerGitHub <[email protected]>2025-07-27 18:18:27 +0000
commita9f04eba2ccbd3ed85e60670d82833dfc0c5233f (patch)
tree2065af122c4b801f91bdb19b3c44ec02885e4361 /packages/core/src/utils/retry.test.ts
parentc45c14ee0ea7c3b6c9f66816e82671adf7cde54e (diff)
refactor(telemetry): enhance flushToClearcut method with retry logic and early return for empty events (#1601)
Co-authored-by: Scott Densmore <[email protected]>
Diffstat (limited to 'packages/core/src/utils/retry.test.ts')
-rw-r--r--packages/core/src/utils/retry.test.ts7
1 files changed, 1 insertions, 6 deletions
diff --git a/packages/core/src/utils/retry.test.ts b/packages/core/src/utils/retry.test.ts
index f84d2004..196e7341 100644
--- a/packages/core/src/utils/retry.test.ts
+++ b/packages/core/src/utils/retry.test.ts
@@ -6,14 +6,9 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
-import { retryWithBackoff } from './retry.js';
+import { retryWithBackoff, HttpError } from './retry.js';
import { setSimulate429 } from './testUtils.js';
-// Define an interface for the error with a status property
-interface HttpError extends Error {
- status?: number;
-}
-
// Helper to create a mock function that fails a certain number of times
const createFailingFunction = (
failures: number,