diff --git a/p2p/net/swarm/simul_test.go b/p2p/net/swarm/simul_test.go index dfb775c97..6a5547dc6 100644 --- a/p2p/net/swarm/simul_test.go +++ b/p2p/net/swarm/simul_test.go @@ -1,6 +1,7 @@ package swarm import ( + "runtime" "sync" "testing" "time" @@ -49,7 +50,8 @@ func TestSimultOpenMany(t *testing.T) { addrs := 20 rounds := 10 - if ci.IsRunning() { + if ci.IsRunning() || runtime.GOOS == "darwin" { + // osx has a limit of 256 file descriptors addrs = 10 rounds = 5 }