mirror of
https://github.com/D-Modem/app.git
synced 2026-11-28 17:38:05 -08:00
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:
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()
|
||||
|
||||
Reference in new issue
Block a user