- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for Wright (0.47 sec)
-
okhttp/src/test/java/okhttp3/CallTest.kt
val call = client.newCall(Request(server.url("/a"))) val executor = Executors.newSingleThreadExecutor() val result = executor.submit<Response?> { call.execute() } Thread.sleep(100) // wait for it to go in flight. call.cancel() assertFailsWith<IOException> { result.get()!!.body.bytes() } assertThat(server.requestCount).isEqualTo(1) } @Test
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 10 19:46:48 GMT 2024 - 142.5K bytes - Viewed (0)