Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for c1 (0.11 sec)

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

        val poolApi = ConnectionPool(pool)
        val c1 = factory.newConnection(pool, routeA1, 0L)
        allocateAndLeakAllocation(poolApi, c1)
        awaitGarbageCollection()
        assertThat(pool.closeConnections(100L)).isEqualTo(0L)
        assertThat(c1.calls).isEmpty()
    
        // Can't allocate once a leak has been detected.
        assertThat(c1.noNewExchanges).isTrue()
      }
    
      @Test fun interruptStopsThread() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 24 04:40:49 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/DispatcherTest.kt

      }
    
      @Test
      fun cancelingRunningJobTakesNoEffectUntilJobFinishes() {
        dispatcher.maxRequests = 1
        val c1 = client.newCall(newRequest("http://a/1", "tag1"))
        val c2 = client.newCall(newRequest("http://a/2"))
        c1.enqueue(callback)
        c2.enqueue(callback)
        c1.cancel()
        executor.assertJobs("http://a/1")
        executor.finishJob("http://a/1")
        executor.assertJobs("http://a/2")
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Apr 05 03:30:42 GMT 2024
    - 12.7K bytes
    - Viewed (0)
Back to top