Skip to content

Commit f6fe82d

Browse files
committed
chore(webapp): apply oxfmt to snapshotSweepRunner test
1 parent 8e887e3 commit f6fe82d

1 file changed

Lines changed: 19 additions & 16 deletions

File tree

apps/webapp/test/snapshotSweepRunner.test.ts

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -166,20 +166,23 @@ redisTest("retries a transiently-failing release and frees the lock", async ({ r
166166
}
167167
});
168168

169-
redisTest("leaves the lock to its TTL only when every release attempt fails", async ({ redisOptions }) => {
170-
const real = createRedisClient(redisOptions);
171-
const client = flakyEvalClient(real, 999); // release can never succeed
172-
try {
173-
const runner = buildSnapshotSweepRunner({
174-
client,
175-
sweep: async () => CLEAN,
176-
lockTtlMs: 60_000,
177-
releaseRetryDelaysMs: [0],
178-
});
179-
180-
expect((await runner(opts())).outcome).toBe("completed"); // runner never throws on a release failure
181-
expect(await real.get(LOCK_KEY)).not.toBeNull(); // still held; the TTL is the backstop
182-
} finally {
183-
await real.quit();
169+
redisTest(
170+
"leaves the lock to its TTL only when every release attempt fails",
171+
async ({ redisOptions }) => {
172+
const real = createRedisClient(redisOptions);
173+
const client = flakyEvalClient(real, 999); // release can never succeed
174+
try {
175+
const runner = buildSnapshotSweepRunner({
176+
client,
177+
sweep: async () => CLEAN,
178+
lockTtlMs: 60_000,
179+
releaseRetryDelaysMs: [0],
180+
});
181+
182+
expect((await runner(opts())).outcome).toBe("completed"); // runner never throws on a release failure
183+
expect(await real.get(LOCK_KEY)).not.toBeNull(); // still held; the TTL is the backstop
184+
} finally {
185+
await real.quit();
186+
}
184187
}
185-
});
188+
);

0 commit comments

Comments
 (0)