p2p/net/swarm: TestDialBackoffClears CI Timeout
increased the timeout for other CI too
Juan Batiz-Benet committed
Jan 24, 2015 at 10:41 UTC
a7bc7bd0e8cfeb5cf7f385ba1ba1abbe8797ab91
1 file changed
+4
-3
p2p/net/swarm/dial_test.go
+4
-3
@@ -10,6 +10,7 @@ import (
10
peer "github.com/jbenet/go-ipfs/p2p/peer"
11
12
testutil "github.com/jbenet/go-ipfs/util/testutil"
13
+ ci "github.com/jbenet/go-ipfs/util/testutil/ci"
14
jenkins "github.com/jbenet/go-ipfs/util/testutil/ci/jenkins"
15
travis "github.com/jbenet/go-ipfs/util/testutil/ci/travis"
16
@@ -377,9 +378,9 @@ func TestDialBackoffClears(t *testing.T) {
378
defer s2.Close()
379
s1.dialT = time.Millisecond * 300 // lower timeout for tests.
380
s2.dialT = time.Millisecond * 300 // lower timeout for tests.
380
- if travis.IsRunning() {
381
- s1.dialT = time.Second
382
- s2.dialT = time.Second
381
+ if ci.IsRunning() {
382
+ s1.dialT = 2 * time.Second
383
+ s2.dialT = 2 * time.Second
384
}
385
386
// use another address first, that accept and hang on conns