aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Chase <drchase@google.com>2023-01-09 13:36:36 -0500
committerDavid Chase <drchase@google.com>2023-01-21 21:06:53 +0000
commit780fa2426073035459b8a5d8e317f47864132ce4 (patch)
treef4a671a5610b0f46820806683f45c265d82ddde7
parent85b49d7f21dfbee9946bece01a168de239094716 (diff)
downloadgo-780fa2426073035459b8a5d8e317f47864132ce4.tar.xz
net: add testing.Short Skip to test affected by local network configuration
If the local network mangles invalid DNS queries, that is not a Go problem. Change-Id: I54db392532eed988bca81b70a98cd6d11766af89 Reviewed-on: https://go-review.googlesource.com/c/go/+/461275 Run-TryBot: David Chase <drchase@google.com> Reviewed-by: Damien Neil <dneil@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
-rw-r--r--src/net/dnsclient_unix_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net/dnsclient_unix_test.go b/src/net/dnsclient_unix_test.go
index 3ba19eb813..990b3f99ce 100644
--- a/src/net/dnsclient_unix_test.go
+++ b/src/net/dnsclient_unix_test.go
@@ -2199,6 +2199,9 @@ var goLookupIPCNAMEOrderDNSFilesModeTests = []struct {
}
func TestGoLookupIPCNAMEOrderHostsAliasesDNSFilesMode(t *testing.T) {
+ if testing.Short() {
+ t.Skip("Makes assumptions about local networks and (re)naming that aren't always true")
+ }
defer func(orig string) { testHookHostsPath = orig }(testHookHostsPath)
testHookHostsPath = "testdata/aliases"
mode := hostLookupDNSFiles