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-bitswap
Commits
5848879b
Commit
5848879b
authored
May 19, 2015
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bitswap/test: fix timeout on travis
parent
aad2ad5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
bitswap_test.go
bitswap_test.go
+8
-1
No files found.
bitswap_test.go
View file @
5848879b
...
...
@@ -8,6 +8,7 @@ import (
detectrace
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-detect-race"
context
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context"
travis
"github.com/ipfs/go-ipfs/util/testutil/ci/travis"
blocks
"github.com/ipfs/go-ipfs/blocks"
blocksutil
"github.com/ipfs/go-ipfs/blocks/blocksutil"
...
...
@@ -98,6 +99,8 @@ func TestLargeSwarm(t *testing.T) {
// when running with the race detector, 500 instances launches
// well over 8k goroutines. This hits a race detector limit.
numInstances
=
100
}
else
if
travis
.
IsRunning
()
{
numInstances
=
200
}
else
{
t
.
Parallel
()
}
...
...
@@ -108,7 +111,11 @@ func TestLargeFile(t *testing.T) {
if
testing
.
Short
()
{
t
.
SkipNow
()
}
t
.
Parallel
()
if
!
travis
.
IsRunning
()
{
t
.
Parallel
()
}
numInstances
:=
10
numBlocks
:=
100
PerformDistributionTest
(
t
,
numInstances
,
numBlocks
)
...
...
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