test: remove redundant session-rotation exact-limit case

This commit is contained in:
Peter Steinberger
2026-02-16 08:05:26 +00:00
parent df062fdb63
commit d71779b46f

View File

@@ -295,14 +295,6 @@ describe("rotateSessionFile", () => {
expect(rotated).toBe(false);
});
it("file exactly at maxBytes: no rotation (returns false)", async () => {
await fs.writeFile(storePath, "x".repeat(100), "utf-8");
const rotated = await rotateSessionFile(storePath, 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();