Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
go-libp2p
Commits
ef4fb9dd
Commit
ef4fb9dd
authored
Jan 24, 2015
by
Juan Batiz-Benet
Browse files
p2p/net/swarm: TestDialBackoffClears CI Timeout
increased the timeout for other CI too
parent
ffc7eac2
Changes
1
Hide whitespace changes
Inline
Side-by-side
net/swarm/dial_test.go
View file @
ef4fb9dd
...
...
@@ -10,6 +10,7 @@ import (
peer
"github.com/jbenet/go-ipfs/p2p/peer"
testutil
"github.com/jbenet/go-ipfs/util/testutil"
ci
"github.com/jbenet/go-ipfs/util/testutil/ci"
jenkins
"github.com/jbenet/go-ipfs/util/testutil/ci/jenkins"
travis
"github.com/jbenet/go-ipfs/util/testutil/ci/travis"
...
...
@@ -377,9 +378,9 @@ func TestDialBackoffClears(t *testing.T) {
defer
s2
.
Close
()
s1
.
dialT
=
time
.
Millisecond
*
300
// lower timeout for tests.
s2
.
dialT
=
time
.
Millisecond
*
300
// lower timeout for tests.
if
travis
.
IsRunning
()
{
s1
.
dialT
=
time
.
Second
s2
.
dialT
=
time
.
Second
if
ci
.
IsRunning
()
{
s1
.
dialT
=
2
*
time
.
Second
s2
.
dialT
=
2
*
time
.
Second
}
// use another address first, that accept and hang on conns
...
...
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