]> Cypherpunks repositories - gostls13.git/commit
net: don't check LookupHost error in TestLookupNullByte
authorDmitri Shuralyov <dmitshur@golang.org>
Wed, 5 Feb 2020 00:41:48 +0000 (19:41 -0500)
committerDmitri Shuralyov <dmitshur@golang.org>
Wed, 5 Feb 2020 14:32:25 +0000 (14:32 +0000)
commitfb93cd45a647087a11f96cf2610e64a257a68c19
tree5e33059200ed9c5703751eab5185869ce1a615de
parentf770366f6d910e4bf92a6f885908afe134d65b23
net: don't check LookupHost error in TestLookupNullByte

net.LookupHost("foo\x00bar") may resolve successfully on some networks.
Reduce the scope of the test to check only that the call doesn't panic.

Also update the test comment to reference the relevant issue.

Fixes #37031
Updates #31597

Change-Id: If175deed8121625ef507598c6145e937ccffd89e
Reviewed-on: https://go-review.googlesource.com/c/go/+/217729
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/net/lookup_test.go