diff --git a/src/net/http/transport_test.go b/src/net/http/transport_test.go index e3de3eb91b4..085bb3cd4b2 100644 --- a/src/net/http/transport_test.go +++ b/src/net/http/transport_test.go @@ -3436,7 +3436,7 @@ func skipIfDNSHijacked(t *testing.T) { // DNS server hijacking queries. // See issues 16732, 16716. isDNSHijackedOnce.Do(func() { - addrs, _ := net.LookupHost("dns-should-not-resolve.golang.") + addrs, _ := net.LookupHost("dns-should-not-resolve.golang") isDNSHijacked = len(addrs) != 0 }) if isDNSHijacked {