Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
1272bb66
Commit
1272bb66
authored
Jan 13, 2015
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
p2p/net/swarm: parallelize tests. poor travis.
parent
baf25412
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
p2p/net/swarm/simul_test.go
p2p/net/swarm/simul_test.go
+3
-0
p2p/net/swarm/swarm_test.go
p2p/net/swarm/swarm_test.go
+2
-0
No files found.
p2p/net/swarm/simul_test.go
View file @
1272bb66
...
...
@@ -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
...
...
p2p/net/swarm/swarm_test.go
View file @
1272bb66
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment