core: fix session compaction test to properly enable prune config option

This commit is contained in:
Dax Raad
2026-04-19 19:53:43 -04:00
parent 29f05cb1ee
commit b9640fc7e4
@@ -564,7 +564,8 @@ describe("session.compaction.create", () => {
describe("session.compaction.prune", () => { describe("session.compaction.prune", () => {
it.live( it.live(
"compacts old completed tool output", "compacts old completed tool output",
provideTmpdirInstance((dir) => provideTmpdirInstance(
(dir) =>
Effect.gen(function* () { Effect.gen(function* () {
const compact = yield* SessionCompaction.Service const compact = yield* SessionCompaction.Service
const ssn = yield* SessionNs.Service const ssn = yield* SessionNs.Service
@@ -649,6 +650,12 @@ describe("session.compaction.prune", () => {
expect(part.state.time.compacted).toBeNumber() expect(part.state.time.compacted).toBeNumber()
} }
}), }),
{
config: {
compaction: { prune: true },
},
},
), ),
) )