mirror of
https://github.com/razzant/ouroboros.git
synced 2026-10-19 02:02:00 +00:00
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:
parent
230e9c7258
commit
12c17b6637
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue