Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ensureAllConnectionsReleased (0.08 sec)

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

          uncaughtException = throwable
        }
      }
    
      @Synchronized fun takeUncaughtException(): Throwable? =
        uncaughtException
          .also { uncaughtException = null }
    
      fun ensureAllConnectionsReleased() {
        testClient?.let {
          val connectionPool = it.connectionPool
    
          connectionPool.evictAll()
          if (connectionPool.connectionCount() > 0) {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Nov 04 19:13:52 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt

        assertThat(get(server.url("/")).body.string()).isEqualTo("ABCABCABC")
      }
    
      @Test
      fun conditionalCacheHitIsNotDoublePooled() {
        clientTestRule.ensureAllConnectionsReleased()
        server.enqueue(
          MockResponse
            .Builder()
            .addHeader("ETag: v1")
            .body("A")
            .build(),
        )
        server.enqueue(
          MockResponse
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Oct 03 17:41:45 UTC 2025
    - 116.8K bytes
    - Viewed (0)
Back to top