From acf2a05ecbe335e5b31ee7c522aaa33708b08928 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 30 Oct 2026 11:51:45 +0000 Subject: [PATCH] NativeModemTest: SIP's log at level 4, so a line comes before the test ends The test looks for a "sip: " line through the log hook. Since dmodemd's SIP moved to libre, nothing at level 3 is said without a call or a registrar's answer, and the test stops the modem within a few ms, so the emulator job failed on main. At level 4 the SIP thread names its addresses ("SIP on ...") before sip::start returns. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01B82eRSgB6M9Vp9dEP1haEE --- .../java/com/neodesktop/dmodem/NativeModemTest.kt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/src/androidTest/java/com/neodesktop/dmodem/NativeModemTest.kt b/app/src/androidTest/java/com/neodesktop/dmodem/NativeModemTest.kt index dcf44fd..62a935c 100644 --- a/app/src/androidTest/java/com/neodesktop/dmodem/NativeModemTest.kt +++ b/app/src/androidTest/java/com/neodesktop/dmodem/NativeModemTest.kt @@ -37,10 +37,15 @@ class NativeModemTest { NativeModem.listener = null } - /** a SIP account at nowhere (no call is made), the modem's data in the app's files */ + /** + * a SIP account at nowhere (no call is made), the modem's data in the + * app's files; SIP's log at level 4, which names its addresses + * ("SIP on ...") before start returns: at 3 a modem with no call and + * no registrar has nothing to say in the test's time + */ private fun config() = NativeModem.Config( user = "test", password = "x", domain = "127.0.0.1:5999", sipPort = 15060, - dns = listOf("127.0.0.1"), logLevel = 1, sipLogLevel = 3, + dns = listOf("127.0.0.1"), logLevel = 1, sipLogLevel = 4, dataFile = File(InstrumentationRegistry.getInstrumentation().targetContext.filesDir, "test_dsp").path, )