fix too many FD error on osx
License: MIT Signed-off-by: Jeromy Johnson <why@ipfs.io>
Jeromy Johnson committed
Oct 8, 2015 at 11:04 UTC
c1c9a74a63ded56ba4081983004b61df5343f867
1 file changed
+3
-1
p2p/net/swarm/simul_test.go
+3
-1
@@ -1,6 +1,7 @@
1
package swarm
2
3
import (
4
+ "runtime"
5
"sync"
6
"testing"
7
"time"
@@ -49,7 +50,8 @@ func TestSimultOpenMany(t *testing.T) {
50
51
addrs := 20
52
rounds := 10
52
- if ci.IsRunning() {
53
+ if ci.IsRunning() || runtime.GOOS == "darwin" {
54
+ // osx has a limit of 256 file descriptors
55
addrs = 10
56
rounds = 5
57
}