PeerLoopbackTest: what C got when its BUSY doesn't come

It has failed now and then ("no C's BUSY") in a full run, not since in
14 alone: the failure now says C's events, its line's state and error,
and A's and B's events, for the next time.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
This commit is contained in:
Claude committed 2026-10-25 08:03:19 +00:00
1 parent 00b335a9d3
commit 7e1eb444cc
1 file changed
+9 -1
@@ -144,7 +144,15 @@ class PeerLoopbackTest {
// C calls B, in a call: busy
c.offHook(caller = true, dial = "B")
waitFor("C's BUSY") { "FAILED 486" in c.events() }
// (what C got, if it isn't busy: it has failed now and then under load)
try {
waitFor("C's BUSY") { "FAILED 486" in c.events() }
} catch (e: AssertionError) {
throw AssertionError(
"no BUSY for C: its events ${c.events()}, its line ${c.line.state.value} (${c.line.lastError.value}); " +
"A's ${a.events()}, B's ${b.events()}",
)
}
// A hangs up (its modem's line closed): B's line ends
a.line.stop()