From 1f607bec491f31a067281bc48c8e9b0efe742ac1 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 16 Feb 2026 08:24:46 +0000 Subject: [PATCH] test: remove low-value no-rotation file-size case --- src/config/sessions/store.pruning.test.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/config/sessions/store.pruning.test.ts b/src/config/sessions/store.pruning.test.ts index 54e00bf28ed..54ed621afbb 100644 --- a/src/config/sessions/store.pruning.test.ts +++ b/src/config/sessions/store.pruning.test.ts @@ -116,16 +116,6 @@ describe("rotateSessionFile", () => { storePath = path.join(testDir, "sessions.json"); }); - it("file under maxBytes: no rotation (returns false)", async () => { - await fs.writeFile(storePath, "x".repeat(500), "utf-8"); - - const rotated = await rotateSessionFile(storePath, 1000); - - expect(rotated).toBe(false); - const content = await fs.readFile(storePath, "utf-8"); - expect(content).toBe("x".repeat(500)); - }); - it("file over maxBytes: renamed to .bak.{timestamp}, returns true", async () => { const bigContent = "x".repeat(200); await fs.writeFile(storePath, bigContent, "utf-8");