mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-03 03:03:24 -04:00
test: remove redundant session-rotation exact-limit case
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user