From df062fdb63ba1e10c1ef7a7e807a1cf45f5eb88d Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 16 Feb 2026 08:04:24 +0000 Subject: [PATCH] test: remove redundant cap-entry exact-limit case --- src/config/sessions/store.pruning.test.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/config/sessions/store.pruning.test.ts b/src/config/sessions/store.pruning.test.ts index 2e4a2b78f..a3ef7c462 100644 --- a/src/config/sessions/store.pruning.test.ts +++ b/src/config/sessions/store.pruning.test.ts @@ -176,20 +176,6 @@ describe("capEntryCount", () => { expect(Object.keys(store)).toHaveLength(2); }); - it("exactly at limit: no-op", () => { - const now = Date.now(); - const store = makeStore([ - ["a", makeEntry(now)], - ["b", makeEntry(now - DAY_MS)], - ["c", makeEntry(now - 2 * DAY_MS)], - ]); - - const evicted = capEntryCount(store, 3); - - expect(evicted).toBe(0); - expect(Object.keys(store)).toHaveLength(3); - }); - it("entries without updatedAt are evicted first (lowest priority)", () => { const now = Date.now(); const store: Record = {