提交 1ce3ecf8 作者: Juan Batiz-Benet

swarm: TestSimultOpenMany has problems in CI.

dialing 4000 connections somehow keeps choking both travis and
jenkins. dialing this down to 500
上级 feb6d341
......@@ -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) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论