diff options
Diffstat (limited to 'test/daemon.py')
| -rw-r--r-- | test/daemon.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/daemon.py b/test/daemon.py index f4836a43..c6ff6256 100644 --- a/test/daemon.py +++ b/test/daemon.py @@ -2109,7 +2109,10 @@ def far(binary): time.sleep(.3) os.write(ts.master, b' sD') wait_for(f'the client through ssh ends ({name})', lambda: sc.poll() is not None, timeout=30) - assert name == 'files' or b"no session called 'nobody'" in ts.text(), ts.text()[-300:] + # Its words are read off its terminal by a thread of the Term's: + # the process can be gone before they are in `text()`. + if name == 'nobody': + wait_for('the refusal said through ssh', lambda: b"no session called 'nobody'" in ts.text(), timeout=5) wait_for(f'its ssh and socket gone ({name})', lambda: not forwarded(), timeout=10) body = texts() for words in (b'from-A', b'from-B', b'again-A', b'from-C', b'from-D', b'from-E', b'from-F'): |
