diff --git a/p2p/net/conn/dial_test.go b/p2p/net/conn/dial_test.go index e97020c2942b743c885a99352f1c42fb7e5f7cde..8700d54032cd2d214db3e3ff323995bcf8eae7aa 100644 --- a/p2p/net/conn/dial_test.go +++ b/p2p/net/conn/dial_test.go @@ -5,6 +5,7 @@ import ( "fmt" "io" "net" + "runtime" "strings" "sync" "testing" @@ -464,6 +465,9 @@ func TestConcurrentAccept(t *testing.T) { n := 300 delay := time.Millisecond * 20 + if runtime.GOOS == "darwin" { + n = 100 + } p1.Addr = l1.Multiaddr() // Addr has been determined by kernel.