From 8a8177b9af5509ebbaa701b06c79126aae7510a8 Mon Sep 17 00:00:00 2001 From: Mateusz Poliwczak Date: Sat, 13 Apr 2024 08:27:14 +0200 Subject: [PATCH] move goResolver Change-Id: I6bbe3a3efa2072a770261e13adc396f95b1c21d4 --- src/net/dnsclient_unix_test.go | 2 -- src/net/lookup_test.go | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net/dnsclient_unix_test.go b/src/net/dnsclient_unix_test.go index a2be61dba4..a887485133 100644 --- a/src/net/dnsclient_unix_test.go +++ b/src/net/dnsclient_unix_test.go @@ -25,8 +25,6 @@ import ( "golang.org/x/net/dns/dnsmessage" ) -var goResolver = Resolver{PreferGo: true} - // Test address from 192.0.2.0/24 block, reserved by RFC 5737 for documentation. var TestAddr = [4]byte{0xc0, 0x00, 0x02, 0x01} diff --git a/src/net/lookup_test.go b/src/net/lookup_test.go index 6f74650872..bd58498fbc 100644 --- a/src/net/lookup_test.go +++ b/src/net/lookup_test.go @@ -20,6 +20,8 @@ import ( "time" ) +var goResolver = Resolver{PreferGo: true} + func hasSuffixFold(s, suffix string) bool { return strings.HasSuffix(strings.ToLower(s), strings.ToLower(suffix)) }