- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for accurate (0.2 sec)
-
mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt
assertThat(inputStream.read()).isEqualTo('B'.code) assertThat(inputStream.read()).isEqualTo('C'.code) try { inputStream.read() // if Content-Length was accurate, this would return -1 immediately fail<Unit>() } catch (expected: SocketTimeoutException) { // Expected. } val urlConnection2 = server.url("/").toUrl().openConnection()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 23.5K bytes - Viewed (0) -
mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt
assertThat(inputStream.read()).isEqualTo('A'.code) assertThat(inputStream.read()).isEqualTo('B'.code) assertThat(inputStream.read()).isEqualTo('C'.code) try { inputStream.read() // if Content-Length was accurate, this would return -1 immediately fail<Any>() } catch (expected: SocketTimeoutException) { } val urlConnection2 = server.url("/").toUrl().openConnection() val in2 = urlConnection2.getInputStream()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 21.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/URLConnectionTest.kt
assertThat(source.readByte()).isEqualTo('B'.code.toByte()) assertThat(source.readByte()).isEqualTo('C'.code.toByte()) assertFailsWith<SocketTimeoutException> { source.readByte() // If Content-Length was accurate, this would return -1 immediately. } source.close() } /** Confirm that an unacknowledged write times out. */ @Test fun writeTimeouts() { val server = MockWebServer()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 131.7K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt
// A file must have been deleted manually! for (source in sources) { source.closeQuietly() } // Since the entry is no longer valid, remove it so the metadata is accurate (i.e. the cache // size.) try { removeEntry(this) } catch (_: IOException) { } return null } }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 34.7K bytes - Viewed (0)