@cryptotaxi247 / kubo / commits / 1ce3ecf84

swarm: TestSimultOpenMany has problems in CI.

dialing 4000 connections somehow keeps choking both travis and jenkins. dialing this down to 500

Juan Batiz-Benet committed Jan 29, 2015 at 01:23 UTC 1ce3ecf846f77b55c29e470ca07f1c6d8f2d3b5c
1 file changed +7 -2
p2p/net/swarm/simul_test.go
+7 -2
@@ -6,6 +6,7 @@ import (
6 "time"
7
8 peer "github.com/jbenet/go-ipfs/p2p/peer"
9 + ci "github.com/jbenet/go-ipfs/util/testutil/ci"
10
11 context "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/go.net/context"
12 ma "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
@@ -45,10 +46,14 @@ func TestSimultOpen(t *testing.T) {
46
47 func TestSimultOpenMany(t *testing.T) {
48 // t.Skip("very very slow")
48 - t.Parallel()
49
50 addrs := 20
51 - SubtestSwarm(t, addrs, 10)
51 + rounds := 10
52 + if ci.IsRunning() {
53 + addrs = 10
54 + rounds = 5
55 + }
56 + SubtestSwarm(t, addrs, rounds)
57 }
58
59 func TestSimultOpenFewStress(t *testing.T) {