Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for dnsFail (0.07 sec)

  1. okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt

          .assertLogMatch(Regex("""responseBodyEnd: byteCount=0"""))
          .assertLogMatch(Regex("""connectionReleased"""))
          .assertLogMatch(Regex("""callEnd"""))
          .assertNoMoreLogs()
      }
    
      @Test
      fun dnsFail() {
        client =
          OkHttpClient.Builder()
            .dns { _ -> throw UnknownHostException("reason") }
            .eventListenerFactory(loggingEventListenerFactory)
            .build()
        try {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Jan 14 10:20:09 UTC 2024
    - 10.2K bytes
    - Viewed (0)
Back to top