Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
c1c9a74a
Commit
c1c9a74a
authored
Oct 08, 2015
by
Jeromy Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix too many FD error on osx
License: MIT Signed-off-by:
Jeromy Johnson
<
why@ipfs.io
>
parent
1c2223de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
p2p/net/swarm/simul_test.go
p2p/net/swarm/simul_test.go
+3
-1
No files found.
p2p/net/swarm/simul_test.go
View file @
c1c9a74a
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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment