mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
net: stop Mac popups
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/4559059
This commit is contained in:
parent
15dcdf751c
commit
4706ce309f
1 changed files with 7 additions and 4 deletions
|
|
@ -92,10 +92,13 @@ func connect(t *testing.T, network, addr string, isEmpty bool) {
|
|||
}
|
||||
|
||||
func doTest(t *testing.T, network, listenaddr, dialaddr string) {
|
||||
if listenaddr == "" {
|
||||
t.Logf("Test %s %s %s\n", network, "<nil>", dialaddr)
|
||||
} else {
|
||||
t.Logf("Test %s %s %s\n", network, listenaddr, dialaddr)
|
||||
t.Logf("Test %q %q %q\n", network, listenaddr, dialaddr)
|
||||
switch listenaddr {
|
||||
case "", "0.0.0.0", "[::]", "[::ffff:0.0.0.0]":
|
||||
if testing.Short() || avoidMacFirewall {
|
||||
t.Logf("skip wildcard listen during short test")
|
||||
return
|
||||
}
|
||||
}
|
||||
listening := make(chan string)
|
||||
done := make(chan int)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue