Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tests/test_node_stderr_replay.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,9 @@ async def test_a_reason_written_on_stderr_while_the_link_was_down_reaches_the_ru
(endpoint,) = node.channels.values()

os.kill(node.client._proc.pid, signal.SIGKILL)
await _until(lambda: endpoint.detached is not None)
# The heartbeat paces the detached signal, so the wait has to outlast a few
# heartbeat ticks under shard load, not just the link's own teardown.
await _until(lambda: endpoint.detached is not None, timeout=30)
(workdir / "go").touch()

with pytest.raises(RuntimeError, match=r"CLI agent 'where@box' exited 3: token expired$"):
Expand Down
Loading