summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-30 03:13:05 -0300
committerGabriel Schneider <[email protected]>2026-10-30 03:32:02 -0300
commit8570ade3263e899b52b5a1c8cb632ea09e700fb8 (patch)
tree8ad4b416fb28a7f29ec3b155fccb11cc134c701d
parentec1eb94cfbccdd590365fdf9fa1e76e6285a1f90 (diff)
downloadpardes-8570ade3263e899b52b5a1c8cb632ea09e700fb8.tar.gz
pardes-8570ade3263e899b52b5a1c8cb632ea09e700fb8.zip
test/daemon.py: a replica's ping passes over the terminal messages a join now streams before its pong
Co-Authored-By: Claude Opus 5.5 <[email protected]>
-rw-r--r--test/daemon.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/daemon.py b/test/daemon.py
index da240c5b..10896194 100644
--- a/test/daemon.py
+++ b/test/daemon.py
@@ -220,13 +220,13 @@ class Replica:
return 'refused', body[2:2 + n].decode()
def ping(self, value):
- """One round trip, in ms (the session's units on the way are
- passed over)."""
+ """One round trip, in ms (the session's units and terminal
+ messages on the way are passed over)."""
t = time.monotonic()
self.send(0x03, struct.pack('<Q', value))
while True:
tag, body = self.read()
- if tag != 0x05:
+ if tag not in (0x05, 0x06):
break
assert (tag, body) == (0x03, struct.pack('<Q', value)), (tag, body)
return (time.monotonic() - t) * 1000