diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/daemon.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/daemon.py b/test/daemon.py index c22d95d4..caa1272b 100644 --- a/test/daemon.py +++ b/test/daemon.py @@ -2382,13 +2382,15 @@ def far_flood(binary): # Queued behind the flood, let go for its lag, joined again from a # dump: a link of its ended (its stats line), and its notice says why. assert joins(stats), ('no link of the far client ended under the flood', checks(stats)) - # Over its own link (the relay's one connection for it), each join's - # time and the KB it was sent; the flood's end to its agreement. + # Fallen behind, a far client dials again (core/replica.zig + # `Link.backHere`: the second road until bounded flight): a new + # connection, not what the old one holds for it read through; each + # join's time and the KB it was sent; the flood's end to its agreement. same = sockets(c.pid) == links print(f'far flood: the far client\'s link {"the same" if same else "another"} after {len(joins(stats))} joins again ' f'(join ms {[j.get("join_ms") for j in joins(stats)]}, sent KB {[j.get("sent_kb") for j in joins(stats)]}); ' f'agreed {time.monotonic() - ended_at:.1f} s after yes ended') - assert same, ('the far client joined again over its own link', links, sockets(c.pid)) + assert not same, ('the far client behind dialled again: another connection', links, sockets(c.pid)) wait_for('the far client\'s notice of its join again', lambda: b'joined again: ' in t.text() and b' s behind' in t.text(), timeout=30) os.write(t.master, b'echo from-far\r') wait_for('the far client\'s keys in the shell', lambda: b'from-far' in nine.read(f'/pane/{shell}/body'), timeout=30) |
