p2p/net/swarm: parallelize tests. poor travis.
Juan Batiz-Benet committed
Jan 13, 2015 at 08:16 UTC
1272bb6651751b140a3133323d7eb648f7072ff6
2 files changed
+5
p2p/net/swarm/simul_test.go
+3
@@ -13,6 +13,7 @@ import (
13
14
func TestSimultOpen(t *testing.T) {
15
// t.Skip("skipping for another test")
16
+ t.Parallel()
17
18
ctx := context.Background()
19
swarms := makeSwarms(ctx, t, 2)
@@ -44,6 +45,7 @@ func TestSimultOpen(t *testing.T) {
45
46
func TestSimultOpenMany(t *testing.T) {
47
// t.Skip("very very slow")
48
+ t.Parallel()
49
50
addrs := 20
51
SubtestSwarm(t, addrs, 10)
@@ -54,6 +56,7 @@ func TestSimultOpenFewStress(t *testing.T) {
56
t.SkipNow()
57
}
58
// t.Skip("skipping for another test")
59
+ t.Parallel()
60
61
msgs := 40
62
swarms := 2
p2p/net/swarm/swarm_test.go
+2
@@ -227,6 +227,7 @@ func SubtestSwarm(t *testing.T, SwarmNum int, MsgNum int) {
227
228
func TestSwarm(t *testing.T) {
229
// t.Skip("skipping for another test")
230
+ t.Parallel()
231
232
// msgs := 1000
233
msgs := 100
@@ -236,6 +237,7 @@ func TestSwarm(t *testing.T) {
237
238
func TestConnHandler(t *testing.T) {
239
// t.Skip("skipping for another test")
240
+ t.Parallel()
241
242
ctx := context.Background()
243
swarms := makeSwarms(ctx, t, 5)