mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 21:01:36 +00:00
test: remove redundant cap-entry empty-store case
This commit is contained in:
@@ -210,14 +210,6 @@ describe("capEntryCount", () => {
|
|||||||
expect(store["key-0"]).toBeDefined();
|
expect(store["key-0"]).toBeDefined();
|
||||||
expect(store["key-500"]).toBeUndefined();
|
expect(store["key-500"]).toBeUndefined();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("empty store is a no-op", () => {
|
|
||||||
const store: Record<string, SessionEntry> = {};
|
|
||||||
|
|
||||||
const evicted = capEntryCount(store, 5);
|
|
||||||
|
|
||||||
expect(evicted).toBe(0);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("rotateSessionFile", () => {
|
describe("rotateSessionFile", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user