diff options
Diffstat (limited to 'test/daemon.py')
| -rw-r--r-- | test/daemon.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/daemon.py b/test/daemon.py index 2bc0cca6..f8402af2 100644 --- a/test/daemon.py +++ b/test/daemon.py @@ -1491,12 +1491,13 @@ def far(binary): f_join = joins(root / 'f.stats')[0] assert f_join['from_disk'] > 0 and cached(cache) <= (1 << 20) + (64 << 10), (f_join, cached(cache)) far_joins(root / 'pardes-replica.sock', 'files', binary, 200) - # Through ssh (a stand-in forwarding as `ssh -L` does): a client - # refused and one detached each end their ssh and its socket (one - # refused left both, 2026-10-30). + # Through ssh (a stand-in forwarding as `ssh -L` does, its socket + # bound 0.5 s before it listens: the client dials until it answers): + # a client refused and one detached each end their ssh and its + # socket (one refused left both, 2026-10-30). fake = root / 'ssh' fake.write_text('#!/bin/sh\nwhile [ $# -gt 0 ]; do case $1 in -L) fwd=$2; shift;; esac; shift; done\n' - f'exec {sys.executable} -B {Path(__file__).parent / "delay_relay.py"} "${{fwd%%:*}}" "${{fwd#*:}}" --delay 0\n') + f'exec {sys.executable} -B {Path(__file__).parent / "delay_relay.py"} "${{fwd%%:*}}" "${{fwd#*:}}" --delay 0 --bound 500\n') fake.chmod(0o755) senv = dict(env, PARDES_SSH=str(fake), PARDES_REMOTE_RUNTIME=str(root), TMPDIR=str(root)) |
