Commit 11b94db5 authored by Juan Batiz-Benet's avatar Juan Batiz-Benet
Browse files

p2p/test/reconnects: faster tests

parent 51f5bce5
......@@ -111,7 +111,7 @@ func TestReconnect2(t *testing.T) {
h1.SetStreamHandler(protocol.TestingID, EchoStreamHandler)
h2.SetStreamHandler(protocol.TestingID, EchoStreamHandler)
rounds := 10
rounds := 8
if testing.Short() {
rounds = 4
}
......@@ -137,9 +137,9 @@ func TestReconnect5(t *testing.T) {
h4.SetStreamHandler(protocol.TestingID, EchoStreamHandler)
h5.SetStreamHandler(protocol.TestingID, EchoStreamHandler)
rounds := 10
rounds := 4
if testing.Short() {
rounds = 4
rounds = 2
}
for i := 0; i < rounds; i++ {
log.Debugf("TestReconnect: %d/%d\n", i, rounds)
......
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