We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d563bee commit 117ebb7Copy full SHA for 117ebb7
1 file changed
integrationTests/apiTests/ttl.test.ts
@@ -33,7 +33,7 @@ const skipSuite = process.platform === 'win32' || process.env.HARPER_RUNTIME ===
33
/** Poll until `fn` resolves without throwing, or throw the last error after `maxWaitMs`. */
34
async function pollUntil(fn: () => Promise<void>, maxWaitMs = MAX_WAIT_MS): Promise<void> {
35
const deadline = Date.now() + maxWaitMs;
36
- let lastErr: unknown;
+ let lastErr: Error = new Error(`pollUntil timed out after ${maxWaitMs}ms`);
37
while (Date.now() < deadline) {
38
try {
39
await fn();
0 commit comments