Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. okhttp/src/test/java/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)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Jan 14 10:20:09 GMT 2024
    - 27.8K bytes
    - Viewed (0)
Back to top