summaryrefslogtreecommitdiff
path: root/test/soak.py
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-30 22:33:55 -0300
committerGabriel Schneider <[email protected]>2026-10-30 22:33:55 -0300
commitc2ddcb39ac6f80e41aaee0bbbe311cd3ef9d6639 (patch)
treecffeca3bf8f0b7350e62c1c2b7f2b05638eef9d6 /test/soak.py
parente9b5d21e56aa0f9dfe68a4051a80cd9f13e37ade (diff)
downloadpardes-c2ddcb39ac6f80e41aaee0bbbe311cd3ef9d6639.tar.gz
pardes-c2ddcb39ac6f80e41aaee0bbbe311cd3ef9d6639.zip
test/soak.py: a quiet point's check is the second new line after its key, as daemon.py's made_live: the first may answer a check the client took before it sent the key, and its /layout read another client's view, still the live one (the "panes left its view with no rejoin" breaches, at 207 ms: a line 104 and 133 ms after the key, where one asked after it comes no sooner than ~500 ms)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'test/soak.py')
-rw-r--r--test/soak.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/soak.py b/test/soak.py
index 400b3dc3..01e29db4 100644
--- a/test/soak.py
+++ b/test/soak.py
@@ -1114,7 +1114,10 @@ def quiet_point(run, live):
t = now()
fresh = False
while now() - t < 8 + 2 * c.rtt / 1000:
- if len(c.check_lines()) > before:
+ # the second new line, as daemon.py's made_live: the first may answer a
+ # check the client took before it sent the key (one check in flight),
+ # read while another client's view was still the live one
+ if len(c.check_lines()) > before + 1:
fresh = True
break
time.sleep(0.1)