Skip to content

Commit 6e988e5

Browse files
committed
test(goal): cover lock-loss propagation in fresh mutations
1 parent 8f62c47 commit 6e988e5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎test/store-concurrency.test.mjs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ test("mutateGoal propagates lock, integrity and live-replacement failures withou
318318
const goal = createGoal({ sessionID: "non-stale-errors", objective: "propagate errors" })
319319
const failures = [
320320
new GoalStoreConcurrencyError("lock_timeout", "lock is owned by another process"),
321+
new GoalStoreConcurrencyError("lock_lost", "process lease token changed"),
321322
new GoalStoreConcurrencyError("live_replacement", "refused to replace unfinished Goal"),
322323
new GoalStoreIntegrityError("goal.json", "invalid_state", "corrupt snapshot"),
323324
]

0 commit comments

Comments
 (0)