test: remove low-value no-rotation file-size case

This commit is contained in:
Peter Steinberger
2026-02-16 08:24:46 +00:00
parent 3dbb69da05
commit 1f607bec49

View File

@@ -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");