- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for Invalid (0.14 sec)
-
okhttp-android/src/androidTest/kotlin/okhttp3/android/AndroidAsyncDnsTest.kt
} } @Test fun testRequestInvalid() { val call = client.newCall(Request("https://google.invalid/".toHttpUrl())) try { call.execute() fail("Request can't succeed") } catch (ioe: IOException) { assertThat(ioe).hasMessage("No results for google.invalid") } } @Test @Ignore("No results on CI for localhost") fun testDnsRequest() {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 5.7K bytes - Viewed (0) -
okhttp-android/src/test/kotlin/okhttp3/android/AndroidAsyncDnsTest.kt
throw IllegalArgumentException("Network.fromNetworkHandle refusing to instantiate NETID_UNSET Network.") } val dns = AsyncDns.toDns(asyncDns) assertFailure { dns.lookup("google.invalid") }.apply { hasMessage("Network.fromNetworkHandle refusing to instantiate NETID_UNSET Network.") isInstanceOf(UnknownHostException::class) } }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 22 20:07:09 GMT 2024 - 1.6K bytes - Viewed (0)