Skip to content

Commit cb461dd

Browse files
ianlancetaylorjproberts
authored andcommitted
net: really skip Windows PTR tests if we say we are skipping them
For golang#38111 Change-Id: I2651687367af68ee070ea91106f4bc18adab2762 Reviewed-on: https://go-review.googlesource.com/c/go/+/414634 Reviewed-by: Ian Lance Taylor <[email protected]> Reviewed-by: Bryan Mills <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
1 parent f691226 commit cb461dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/net/lookup_windows_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ func TestLookupLocalPTR(t *testing.T) {
156156
}
157157
expected, err := lookupPTR(addr.String())
158158
if err != nil {
159-
t.Logf("skipping failed lookup %s test: %s", addr.String(), err)
159+
t.Skipf("skipping failed lookup %s test: %s", addr.String(), err)
160160
}
161161
sort.Strings(expected)
162162
sort.Strings(names)
@@ -179,6 +179,7 @@ func TestLookupPTR(t *testing.T) {
179179
expected, err := lookupPTR(addr)
180180
if err != nil {
181181
t.Logf("skipping failed lookup %s test: %s", addr, err)
182+
continue
182183
}
183184
sort.Strings(expected)
184185
sort.Strings(names)

0 commit comments

Comments
 (0)