1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-10-24 15:12:55 +08:00

fix too many FD error on osx

License: MIT
Signed-off-by: Jeromy Johnson <why@ipfs.io>
This commit is contained in:
Jeromy Johnson
2015-10-08 11:04:43 -07:00
parent 1c2223dece
commit c1c9a74a63

View File

@ -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
}