mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
net: add a bit clarified multicast listener tests
Also adds -external flag to allow use of external networks on tests. R=rsc CC=golang-dev https://golang.org/cl/5693043
This commit is contained in:
parent
ebae73bb24
commit
adbadf444d
4 changed files with 123 additions and 86 deletions
|
|
@ -95,7 +95,7 @@ func doTest(t *testing.T, network, listenaddr, dialaddr string) {
|
|||
t.Logf("Test %q %q %q", network, listenaddr, dialaddr)
|
||||
switch listenaddr {
|
||||
case "", "0.0.0.0", "[::]", "[::ffff:0.0.0.0]":
|
||||
if testing.Short() || avoidMacFirewall {
|
||||
if testing.Short() || !*testExternal {
|
||||
t.Logf("skip wildcard listen during short test")
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue