Skip to content

Commit fb3861f

Browse files
committed
test: dedupe flagged retry coverage
(cherry picked from commit 36a3f9e)
1 parent 5c98f7e commit fb3861f

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

test/storage-flagged.test.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -594,23 +594,6 @@ describe("flagged storage extracted helpers", () => {
594594
expect(sleep).toHaveBeenNthCalledWith(3, 40);
595595
});
596596

597-
it("rethrows after retry budget is exhausted for windows lock errors", async () => {
598-
const sleep = vi.fn(async () => {});
599-
const readFile = vi
600-
.fn()
601-
.mockRejectedValue(Object.assign(new Error("locked"), { code: "EBUSY" }));
602-
await expect(
603-
loadFlaggedAccountsFromFile("flagged.json", {
604-
readFile,
605-
normalizeFlaggedStorage: vi.fn(),
606-
sleep,
607-
}),
608-
).rejects.toThrow("locked");
609-
expect(readFile).toHaveBeenCalledTimes(4);
610-
expect(sleep).toHaveBeenNthCalledWith(1, 10);
611-
expect(sleep).toHaveBeenNthCalledWith(2, 20);
612-
expect(sleep).toHaveBeenNthCalledWith(3, 40);
613-
});
614597

615598
it("propagates malformed JSON parse errors", async () => {
616599
await expect(

0 commit comments

Comments
 (0)