Browse Source

swarm: TestSimultOpenMany has problems in CI.

dialing 4000 connections somehow keeps choking both travis and
jenkins. dialing this down to 500
pull/2/head
Juan Batiz-Benet 10 years ago
parent
commit
39e858b0e9
  1. 9
      net/swarm/simul_test.go

9
net/swarm/simul_test.go

@ -6,6 +6,7 @@ import (
"time"
peer "github.com/jbenet/go-ipfs/p2p/peer"
ci "github.com/jbenet/go-ipfs/util/testutil/ci"
context "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/go.net/context"
ma "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
@ -45,10 +46,14 @@ func TestSimultOpen(t *testing.T) {
func TestSimultOpenMany(t *testing.T) {
// t.Skip("very very slow")
t.Parallel()
addrs := 20
SubtestSwarm(t, addrs, 10)
rounds := 10
if ci.IsRunning() {
addrs = 10
rounds = 5
}
SubtestSwarm(t, addrs, rounds)
}
func TestSimultOpenFewStress(t *testing.T) {

Loading…
Cancel
Save