From 7e1eb444cc5319b4a2193973d13675b0610a513b Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 25 Oct 2026 08:03:19 +0000 Subject: [PATCH] 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 Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs --- .../com/neodesktop/dmodem/peer/PeerLoopbackTest.kt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/shared/src/commonTest/kotlin/com/neodesktop/dmodem/peer/PeerLoopbackTest.kt b/shared/src/commonTest/kotlin/com/neodesktop/dmodem/peer/PeerLoopbackTest.kt index dea82a7..adb008c 100644 --- a/shared/src/commonTest/kotlin/com/neodesktop/dmodem/peer/PeerLoopbackTest.kt +++ b/shared/src/commonTest/kotlin/com/neodesktop/dmodem/peer/PeerLoopbackTest.kt @@ -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()