Skip to content

Instantly share code, notes, and snippets.

@josharian
Created September 13, 2013 17:33
Show Gist options
  • Save josharian/6553677 to your computer and use it in GitHub Desktop.
Save josharian/6553677 to your computer and use it in GitHub Desktop.
`go test nest` with no network access
$ go test net
--- FAIL: TestResolveGoogle (0.00 seconds)
dialgoogle_test.go:32: ResolveTCPAddr failed: lookup www.google.com: no such host
dialgoogle_test.go:32: ResolveTCPAddr failed: lookup www.google.com: no such host
dialgoogle_test.go:32: ResolveTCPAddr failed: lookup www.google.com: no such host
--- FAIL: TestDialGoogle (0.00 seconds)
dialgoogle_test.go:65: Dial failed: dial tcp: lookup www.google.com: no such host
dialgoogle_test.go:65: Dial failed: dial tcp4: lookup www.google.com: no such host
dialgoogle_test.go:61: test disabled; use -ipv6 to enable
--- FAIL: TestDialGoogleIPv4 (0.01 seconds)
dialgoogle_test.go:143: lookup www.google.com: lookup www.google.com: no such host
--- FAIL: TestTCPLookup (0.00 seconds)
dnsclient_unix_test.go:19: Dial failed: dial tcp 8.8.8.8:53: too many open files
--- FAIL: TestGoogleSRV (0.00 seconds)
lookup_test.go:24: failed: error reading DNS config: open /etc/resolv.conf: no such file or directory
lookup_test.go:27: no results
lookup_test.go:33: back door failed: error reading DNS config: open /etc/resolv.conf: no such file or directory
lookup_test.go:36: back door no results
--- FAIL: TestGmailMX (0.00 seconds)
lookup_test.go:46: failed: error reading DNS config: open /etc/resolv.conf: no such file or directory
lookup_test.go:49: no results
--- FAIL: TestGmailNS (0.00 seconds)
lookup_test.go:59: failed: error reading DNS config: open /etc/resolv.conf: no such file or directory
lookup_test.go:62: no results
--- FAIL: TestGmailTXT (0.00 seconds)
lookup_test.go:72: failed: error reading DNS config: open /etc/resolv.conf: no such file or directory
lookup_test.go:75: no results
--- FAIL: TestGoogleDNSAddr (0.00 seconds)
lookup_test.go:85: failed: error reading DNS config: open /etc/resolv.conf: no such file or directory
lookup_test.go:88: no results
--- FAIL: TestLookupIANACNAME (0.00 seconds)
lookup_test.go:98: LookupCNAME("www.iana.org.") = "", lookup www.iana.org: no such host, want "*.icann.org.", nil
--- FAIL: TestStreamConnServer (1.00 seconds)
server_test.go:233: Read failed: 0, read tcp4 127.0.0.1:50611: i/o timeout; want 25, <nil>
FAIL
FAIL net 18.035s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment