p2p/test/reconnects: faster tests
Juan Batiz-Benet committed
Jan 19, 2015 at 02:55 UTC
289f24207e9abf1f293d0a0e0a95b0044589b78a
1 file changed
+3
-3
p2p/test/reconnects/reconnect_test.go
+3
-3
@@ -111,7 +111,7 @@ func TestReconnect2(t *testing.T) {
111
h1.SetStreamHandler(protocol.TestingID, EchoStreamHandler)
112
h2.SetStreamHandler(protocol.TestingID, EchoStreamHandler)
113
114
- rounds := 10
114
+ rounds := 8
115
if testing.Short() {
116
rounds = 4
117
}
@@ -137,9 +137,9 @@ func TestReconnect5(t *testing.T) {
137
h4.SetStreamHandler(protocol.TestingID, EchoStreamHandler)
138
h5.SetStreamHandler(protocol.TestingID, EchoStreamHandler)
139
140
- rounds := 10
140
+ rounds := 4
141
if testing.Short() {
142
- rounds = 4
142
+ rounds = 2
143
}
144
for i := 0; i < rounds; i++ {
145
log.Debugf("TestReconnect: %d/%d\n", i, rounds)