Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for recordedConnectionEventTypes (0.31 seconds)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpClientTestRule.kt

        synchronized(clientEventsList) {
          println("$testName Events (${clientEventsList.size})")
    
          for (e in clientEventsList) {
            println(e)
          }
        }
      }
    
      fun recordedConnectionEventTypes(): List<String> = connectionListener.recordedEventTypes()
    
      companion object {
        /**
         * A network that resolves only one IP address per host. Use this when testing route selection
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 10.8K bytes
    - Click Count (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/RouteFailureTest.kt

        server1.takeRequest()
        assertThat(server1.requestCount).isEqualTo(1)
        assertThat(server2.requestCount).isEqualTo(0)
    
        assertThat(clientTestRule.recordedConnectionEventTypes()).containsExactly(
          "ConnectStart",
          "ConnectEnd",
          "ConnectionAcquired",
          "ConnectionReleased",
        )
      }
    
      @Test
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sat Jan 10 15:25:06 GMT 2026
    - 11.8K bytes
    - Click Count (0)
Back to Top