mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 00:41:25 +00:00
test: remove low-value stale-prune no-updatedAt edge case
This commit is contained in:
@@ -52,18 +52,6 @@ describe("pruneStaleEntries", () => {
|
||||
expect(store.old).toBeUndefined();
|
||||
expect(store.fresh).toBeDefined();
|
||||
});
|
||||
|
||||
it("keeps entries with no updatedAt", () => {
|
||||
const store: Record<string, SessionEntry> = {
|
||||
noDate: { sessionId: crypto.randomUUID() } as SessionEntry,
|
||||
fresh: makeEntry(Date.now()),
|
||||
};
|
||||
|
||||
const pruned = pruneStaleEntries(store, 1 * DAY_MS);
|
||||
|
||||
expect(pruned).toBe(0);
|
||||
expect(store.noDate).toBeDefined();
|
||||
});
|
||||
});
|
||||
|
||||
describe("capEntryCount", () => {
|
||||
|
||||
Reference in New Issue
Block a user