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
c1535548
Commit
c1535548
authored
May 19, 2015
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1252 from ipfs/fix-bitswap-ci
bitswap/test: fix timeout on travis
parents
c561c098
d7794c7d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
.travis.yml
.travis.yml
+1
-1
exchange/bitswap/bitswap_test.go
exchange/bitswap/bitswap_test.go
+8
-1
No files found.
.travis.yml
View file @
c1535548
dist
:
trusty
#
dist: trusty
# KVM Setup
os
:
-
linux
...
...
exchange/bitswap/bitswap_test.go
View file @
c1535548
...
...
@@ -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