Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for createRetry (0.05 sec)

  1. okhttp/src/test/java/okhttp3/internal/connection/FastFallbackExchangeFinderTest.kt

        val plan0 = routePlanner.addPlan()
        plan0.tcpConnectDelayNanos = 270.ms
        val plan1 = routePlanner.addPlan()
        plan1.tcpConnectDelayNanos = 10.ms // Connect at time = 260 ms.
        val plan2 = plan0.createRetry()
        plan2.tcpConnectDelayNanos = 20.ms // Connect at time = 280 ms.
    
        taskRunner.newQueue().execute("connect") {
          val result0 = finder.find()
          assertThat(result0).isEqualTo(plan1.connection)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 24 04:40:49 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/FakeRoutePlanner.kt

        var connectTcpNextPlan: FakePlan? = null
        var tlsConnectDelayNanos = 0L
        var tlsConnectThrowable: Throwable? = null
        var connectTlsNextPlan: FakePlan? = null
    
        fun createRetry(): FakePlan {
          check(retry == null)
          return FakePlan(nextPlanId++)
            .also {
              retry = it
            }
        }
    
        fun createConnectTcpNextPlan(): FakePlan {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 24 04:40:49 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top