Skip to content

Commit 6040534

Browse files
committed
fix(daemon): type sequenced expiry clock
1 parent 3881538 commit 6040534

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/daemon/handlers/__tests__/lease-artifacts.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ test('artifacts refuses a provider session returned after allocation expiry rete
121121
const clockValues = [1_000, 1_000, 1_099, 1_151] as const;
122122
let clockIndex = 0;
123123
const world = createWorld({
124-
now: () => clockValues[Math.min(clockIndex++, clockValues.length - 1)],
124+
now: () => clockValues[Math.min(clockIndex++, clockValues.length - 1)] ?? 1_151,
125125
defaultLeaseTtlMs: 100,
126126
minLeaseTtlMs: 1,
127127
maxLeaseTtlMs: 100,

0 commit comments

Comments
 (0)