summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-20 07:35:27 -0300
committerGabriel Schneider <[email protected]>2026-11-20 08:11:40 -0300
commit4562c2864ade6051206b2aa88e35f472729d06e0 (patch)
treee100965052537b3f1d783874edbb955418578e3d
parent03afd6e1186c82bccce41566e7044b7f9187f16b (diff)
downloadpardes-4562c2864ade6051206b2aa88e35f472729d06e0.tar.gz
pardes-4562c2864ade6051206b2aa88e35f472729d06e0.zip
test: daemon.py's by_hash waits up to 60 s for each 9P reply, not ninep.py's 5 s: the 17 MiB file's Look under two clients took 1.6-6.6 s in a Debug build at a load of 35 (measured in 5 --far runs), and a reply after the 5 s was read as the next one's ('invalid 9P reply header' in 2 of 3 plain runs)
Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
-rw-r--r--test/daemon.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/daemon.py b/test/daemon.py
index e68cc6ae..59a9c7d1 100644
--- a/test/daemon.py
+++ b/test/daemon.py
@@ -1275,7 +1275,10 @@ def by_hash(binary):
started.append(sess.pid)
wait_for('the replica socket', (root / 'pardes-replica.sock').exists)
wait_for('the session\'s 9P socket', (root / 'pardes-9p-files.sock').exists)
- nine = Client(root / 'pardes-9p-files.sock')
+ # Each reply waited for as long as the opens it answers take: the
+ # 17 MiB file's Look took 1.6-6.6 s in a Debug build at a load of
+ # 35 (ninep.py's 5 s is a reply's whole wait).
+ nine = Client(root / 'pardes-9p-files.sock', timeout=60)
pane = next(int(row.split()[0]) for row in nine.read('/index').splitlines() if row.split()[1] == b'text')
(ta, a), (tf, f) = client('a', False), client('f', True)
seen = {n: len(checks(root / f'{n}.check')) for n in 'af'}