summaryrefslogtreecommitdiff
path: root/packages/core/src/utils/retry.test.ts
diff options
context:
space:
mode:
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,