Skip to content

Commit 8267b4b

Browse files
only21milclaude
andcommitted
test(server): assert the prune plan seeks the completed_at cutoff
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent dcddd31 commit 8267b4b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎apps/server/src/orchestration-v2/FoundationPersistence.test.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2278,8 +2278,9 @@ it.layer(layerTest)("orchestration V2 foundation persistence", (it) => {
22782278
pruneStatement[1],
22792279
);
22802280
assert.include(
2281-
plan.map((row) => row.detail).join("\n"),
2282-
"orchestration_v2_effect_outbox_settled_completed_idx",
2281+
plan.map((row) => row.detail),
2282+
"SEARCH orchestration_v2_effect_outbox USING COVERING INDEX " +
2283+
"orchestration_v2_effect_outbox_settled_completed_idx (status=? AND completed_at<?)",
22832284
);
22842285

22852286
const remaining = yield* sql<{ readonly effect_id: string }>`

0 commit comments

Comments
 (0)