p2p/net/swarm: parallelize tests. poor travis.

This commit is contained in:
Juan Batiz-Benet 2015-01-13 08:16:02 -08:00
parent baf2541237
commit 1272bb6651
2 changed files with 5 additions and 0 deletions

View File

@ -13,6 +13,7 @@ import (
func TestSimultOpen(t *testing.T) {
// t.Skip("skipping for another test")
t.Parallel()
ctx := context.Background()
swarms := makeSwarms(ctx, t, 2)
@ -44,6 +45,7 @@ func TestSimultOpen(t *testing.T) {
func TestSimultOpenMany(t *testing.T) {
// t.Skip("very very slow")
t.Parallel()
addrs := 20
SubtestSwarm(t, addrs, 10)
@ -54,6 +56,7 @@ func TestSimultOpenFewStress(t *testing.T) {
t.SkipNow()
}
// t.Skip("skipping for another test")
t.Parallel()
msgs := 40
swarms := 2

View File

@ -227,6 +227,7 @@ func SubtestSwarm(t *testing.T, SwarmNum int, MsgNum int) {
func TestSwarm(t *testing.T) {
// t.Skip("skipping for another test")
t.Parallel()
// msgs := 1000
msgs := 100
@ -236,6 +237,7 @@ func TestSwarm(t *testing.T) {
func TestConnHandler(t *testing.T) {
// t.Skip("skipping for another test")
t.Parallel()
ctx := context.Background()
swarms := makeSwarms(ctx, t, 5)