Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for getLogsForTag (0.05 sec)

  1. android-test/src/test/kotlin/okhttp/android/test/AndroidLoggingTest.kt

        val client = clientBuilder.addInterceptor(interceptor).build()
    
        try {
          client.newCall(request).execute()
        } catch (uhe: UnknownHostException) {
          // expected
        }
    
        val logs = ShadowLog.getLogsForTag(AndroidPlatform.Tag)
        assertThat(logs.map { it.type }).containsOnly(Log.INFO)
        assertThat(
          logs.map {
            it.msg.replace(
              "\\d+".toRegex(),
              "",
            )
          },
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Aug 21 14:27:04 UTC 2025
    - 3.2K bytes
    - Viewed (0)
Back to top