summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-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)