mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 13:41:37 +00:00
test: remove redundant session-rotation exact-limit case
This commit is contained in:
@@ -295,14 +295,6 @@ describe("rotateSessionFile", () => {
|
|||||||
expect(rotated).toBe(false);
|
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 () => {
|
it("backup file name includes a timestamp", async () => {
|
||||||
await fs.writeFile(storePath, "x".repeat(100), "utf-8");
|
await fs.writeFile(storePath, "x".repeat(100), "utf-8");
|
||||||
const before = Date.now();
|
const before = Date.now();
|
||||||
|
|||||||
Reference in New Issue
Block a user