Skip to content

Commit

Permalink
net: really skip Windows PTR tests if we say we are skipping them
Browse files Browse the repository at this point in the history
For #38111

Change-Id: I2651687367af68ee070ea91106f4bc18adab2762
Reviewed-on: https://go-review.googlesource.com/c/go/+/414634
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
  • Loading branch information
ianlancetaylor authored and gopherbot committed Jun 27, 2022
1 parent a42573c commit 3af5280
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/net/lookup_windows_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func TestLookupLocalPTR(t *testing.T) {
}
expected, err := lookupPTR(addr.String())
if err != nil {
t.Logf("skipping failed lookup %s test: %s", addr.String(), err)
t.Skipf("skipping failed lookup %s test: %s", addr.String(), err)
}
sort.Strings(expected)
sort.Strings(names)
Expand All @@ -179,6 +179,7 @@ func TestLookupPTR(t *testing.T) {
expected, err := lookupPTR(addr)
if err != nil {
t.Logf("skipping failed lookup %s test: %s", addr, err)
continue
}
sort.Strings(expected)
sort.Strings(names)
Expand Down

0 comments on commit 3af5280

Please sign in to comment.