diff --git a/src/net/dnsconfig_unix_test.go b/src/net/dnsconfig_unix_test.go index 82f7f7d6f2..0aae2ba85b 100644 --- a/src/net/dnsconfig_unix_test.go +++ b/src/net/dnsconfig_unix_test.go @@ -176,7 +176,6 @@ func TestDNSReadConfig(t *testing.T) { getHostname = func() (string, error) { return "host.domain.local", nil } for _, tt := range dnsReadConfigTests { - // make a copy to avoid modyfying shared state want := *tt.want if len(want.search) == 0 { want.search = dnsDefaultSearch()