mirror of
https://github.com/golang/go
synced 2024-11-25 18:57:56 -07:00
net: fix windows build
Windows builders say: pkg\net\dnsclient_unix_test.go:24: undefined: dnsConfig pkg\net\dnsclient_unix_test.go:25: undefined: exchange R=golang-dev CC=golang-dev https://golang.org/cl/12889043
This commit is contained in:
parent
4f2e382c9f
commit
d90a81c39f
@ -2,6 +2,8 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build darwin freebsd linux netbsd openbsd
|
||||||
|
|
||||||
package net
|
package net
|
||||||
|
|
||||||
import (
|
import (
|
||||||
@ -10,9 +12,6 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func TestTCPLookup(t *testing.T) {
|
func TestTCPLookup(t *testing.T) {
|
||||||
if runtime.GOOS == "windows" || runtime.GOOS == "plan9" {
|
|
||||||
t.Skip("skipping unix dns test")
|
|
||||||
}
|
|
||||||
if testing.Short() || !*testExternal {
|
if testing.Short() || !*testExternal {
|
||||||
t.Skip("skipping test to avoid external network")
|
t.Skip("skipping test to avoid external network")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user