Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for chainWithReadTimeout (0.74 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/InterceptorTest.kt

        org.junit.jupiter.api.Assertions.assertTrue(
          elapsedNanos < TimeUnit.SECONDS.toNanos(5),
          "Timeout should have taken ~100ms but was " + elapsedNanos / 1e6 + " ms",
        )
      }
    
      @Test
      fun chainWithReadTimeout() {
        val interceptor1 =
          Interceptor { chainA: Interceptor.Chain ->
            assertThat(chainA.readTimeoutMillis()).isEqualTo(5000)
            val chainB = chainA.withReadTimeout(100, TimeUnit.MILLISECONDS)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 28.2K bytes
    - Viewed (0)
Back to top