Skip to content

Commit 9b8f76f

Browse files
committed
Merge remote-tracking branch 'origin/@invertase/integration-test-suite-dev' into @invertase/integration-test-suite-dev
2 parents 9ec5803 + f030db1 commit 9b8f76f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

integration_test/tests/utils.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@ export async function retry<T>(fn: () => Promise<T>, options?: RetryOptions): Pr
2727
} catch (e) {
2828
lastError = e as Error;
2929
}
30-
// Use exponential backoff for retries to be more efficient
31-
const delay = Math.min(1000 * Math.pow(1.5, count), 10000); // Max 10s delay
32-
await timeout(delay);
30+
// Use exponential backoff for retries to be more efficient
31+
const BACKOFF_FACTOR = 1.5;
32+
const delay = Math.min(1000 * Math.pow(BACKOFF_FACTOR, count), 10000); // Max 10s delay
33+
await timeout(delay);
3334
count++;
3435
}
3536

0 commit comments

Comments
 (0)