mirror of
https://github.com/D-Modem/app.git
synced 2026-11-28 17:38:05 -08:00
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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSgB6M9Vp9dEP1haEE
This commit is contained in:
1 file changed
+7
-2
@@ -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,
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user