Commit 0f910195 authored by Juan Batiz-Benet's avatar Juan Batiz-Benet
Browse files

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

parent 70002a38
...@@ -13,6 +13,7 @@ import ( ...@@ -13,6 +13,7 @@ import (
func TestSimultOpen(t *testing.T) { func TestSimultOpen(t *testing.T) {
// t.Skip("skipping for another test") // t.Skip("skipping for another test")
t.Parallel()
ctx := context.Background() ctx := context.Background()
swarms := makeSwarms(ctx, t, 2) swarms := makeSwarms(ctx, t, 2)
...@@ -44,6 +45,7 @@ func TestSimultOpen(t *testing.T) { ...@@ -44,6 +45,7 @@ func TestSimultOpen(t *testing.T) {
func TestSimultOpenMany(t *testing.T) { func TestSimultOpenMany(t *testing.T) {
// t.Skip("very very slow") // t.Skip("very very slow")
t.Parallel()
addrs := 20 addrs := 20
SubtestSwarm(t, addrs, 10) SubtestSwarm(t, addrs, 10)
...@@ -54,6 +56,7 @@ func TestSimultOpenFewStress(t *testing.T) { ...@@ -54,6 +56,7 @@ func TestSimultOpenFewStress(t *testing.T) {
t.SkipNow() t.SkipNow()
} }
// t.Skip("skipping for another test") // t.Skip("skipping for another test")
t.Parallel()
msgs := 40 msgs := 40
swarms := 2 swarms := 2
......
...@@ -227,6 +227,7 @@ func SubtestSwarm(t *testing.T, SwarmNum int, MsgNum int) { ...@@ -227,6 +227,7 @@ func SubtestSwarm(t *testing.T, SwarmNum int, MsgNum int) {
func TestSwarm(t *testing.T) { func TestSwarm(t *testing.T) {
// t.Skip("skipping for another test") // t.Skip("skipping for another test")
t.Parallel()
// msgs := 1000 // msgs := 1000
msgs := 100 msgs := 100
...@@ -236,6 +237,7 @@ func TestSwarm(t *testing.T) { ...@@ -236,6 +237,7 @@ func TestSwarm(t *testing.T) {
func TestConnHandler(t *testing.T) { func TestConnHandler(t *testing.T) {
// t.Skip("skipping for another test") // t.Skip("skipping for another test")
t.Parallel()
ctx := context.Background() ctx := context.Background()
swarms := makeSwarms(ctx, t, 5) swarms := makeSwarms(ctx, t, 5)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment