From d115d48a72f94d1e5cdb78933f1488ed13975c3f Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 16 Feb 2026 08:12:38 +0000 Subject: [PATCH] test: remove redundant rotate missing-file no-op case --- src/config/sessions/store.pruning.test.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/config/sessions/store.pruning.test.ts b/src/config/sessions/store.pruning.test.ts index 77186f1f5d8..2e8ff4d2a8c 100644 --- a/src/config/sessions/store.pruning.test.ts +++ b/src/config/sessions/store.pruning.test.ts @@ -231,14 +231,6 @@ describe("rotateSessionFile", () => { expect(bakFiles.length).toBeLessThanOrEqual(3); }); - it("non-existent file: no rotation (returns false)", async () => { - const missingPath = path.join(testDir, "missing.json"); - - const rotated = await rotateSessionFile(missingPath, 100); - - expect(rotated).toBe(false); - }); - it("backup file name includes a timestamp", async () => { await fs.writeFile(storePath, "x".repeat(100), "utf-8"); const before = Date.now();