From e123a79f92877f8365a4e098f2a5136df34fb0ab Mon Sep 17 00:00:00 2001 From: Jeromy Date: Sun, 10 Apr 2016 11:32:17 -0700 Subject: [PATCH] make test smaller for osx --- p2p/net/conn/dial_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/p2p/net/conn/dial_test.go b/p2p/net/conn/dial_test.go index e97020c..8700d54 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. -- GitLab