test: remove redundant maintenance config mapping e2e case

This commit is contained in:
Peter Steinberger
2026-02-16 09:13:05 +00:00
parent 22a1a56e7e
commit 54948a1d44

View File

@@ -178,24 +178,6 @@ describe("Integration: saveSessionStore with pruning", () => {
expect(Object.keys(loaded)).toHaveLength(2);
});
it("resolveMaintenanceConfig reads from loadConfig().session.maintenance", async () => {
mockLoadConfig.mockReturnValue({
session: {
maintenance: { pruneAfter: "7d", maxEntries: 100, rotateBytes: "5mb" },
},
});
const { resolveMaintenanceConfig } = await import("./store.js");
const config = resolveMaintenanceConfig();
expect(config).toEqual({
mode: "warn",
pruneAfterMs: 7 * DAY_MS,
maxEntries: 100,
rotateBytes: 5 * 1024 * 1024,
});
});
it("resolveMaintenanceConfig falls back to deprecated pruneDays", async () => {
mockLoadConfig.mockReturnValue({ session: { maintenance: { pruneDays: 2 } } });