Exercise contention on the consolidated admission read

Keep the pre-send retry and unlocked wait assertions at the single current control read.

Co-authored-by: Ouroboros <311266734+ouroboros-agent@users.noreply.github.com>
This commit is contained in:
Anton 2026-10-14 03:52:29 +03:00
parent 230e9c7258
commit 12c17b6637

View file

@ -52,7 +52,7 @@ def test_capture_contention_retries_before_handoff_with_no_launch_lock_held(sour
def read(*args, **kwargs):
calls.append(True)
if len(calls) == 2: # validation succeeded; capture is still before the first submit
if len(calls) == 1: # the same pre-send read now validates and captures the generation
raise store.StoreBusy("admitted generation contended", reason="contention")
return original(*args, **kwargs)