Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for DnsQuery (0.07 sec)

  1. okhttp-android/src/androidTest/kotlin/okhttp3/android/AndroidAsyncDnsTest.kt

        }
      }
    
      @Test
      @Ignore("No results on CI for localhost")
      fun testDnsRequest() {
        val (allAddresses, exception) = dnsQuery("localhost")
    
        assertThat(exception).isNull()
        assertThat(allAddresses).isNotEmpty()
      }
    
      private fun dnsQuery(hostname: String): Pair<List<InetAddress>, Exception?> {
        val allAddresses = mutableListOf<InetAddress>()
        var exception: Exception? = null
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.7K bytes
    - Viewed (0)
Back to top