@@ -108,7 +108,7 @@ func TestP2PSubmitTX(t *testing.T) {
108108 )
109109 require .Eventually (t , func () bool {
110110 return netA .hasPeers () && netB .hasPeers () && netC .hasPeers ()
111- }, 5 * time .Second , 50 * time .Millisecond )
111+ }, 10 * time .Second , 50 * time .Millisecond )
112112
113113 // for some reason the above check is not enough in race builds on CI
114114 time .Sleep (time .Second ) // give time for peers to connect.
@@ -203,7 +203,7 @@ func TestP2PSubmitTXNoGossip(t *testing.T) {
203203
204204 require .Eventually (t , func () bool {
205205 return netA .hasPeers () && netB .hasPeers () && netC .hasPeers ()
206- }, 5 * time .Second , 50 * time .Millisecond )
206+ }, 10 * time .Second , 50 * time .Millisecond )
207207
208208 time .Sleep (time .Second ) // give time for peers to connect.
209209
@@ -288,7 +288,7 @@ func TestP2PSubmitWS(t *testing.T) {
288288
289289 require .Eventually (t , func () bool {
290290 return netA .hasPeers () && netB .hasPeers () && netC .hasPeers ()
291- }, 5 * time .Second , 50 * time .Millisecond )
291+ }, 10 * time .Second , 50 * time .Millisecond )
292292
293293 time .Sleep (time .Second ) // give time for peers to connect.
294294
@@ -731,7 +731,7 @@ func TestP2PNetworkDHTCapabilities(t *testing.T) {
731731
732732 require .Eventually (t , func () bool {
733733 return netA .hasPeers () && netB .hasPeers () && netC .hasPeers ()
734- }, 2 * time .Second , 50 * time .Millisecond )
734+ }, 10 * time .Second , 50 * time .Millisecond )
735735
736736 t .Logf ("peers connected" )
737737
@@ -1009,7 +1009,7 @@ func TestP2PRelay(t *testing.T) {
10091009
10101010 require .Eventually (t , func () bool {
10111011 return netA .hasPeers () && netB .hasPeers ()
1012- }, 2 * time .Second , 50 * time .Millisecond )
1012+ }, 10 * time .Second , 50 * time .Millisecond )
10131013
10141014 type logMessages struct {
10151015 msgs [][]byte
@@ -1089,7 +1089,7 @@ func TestP2PRelay(t *testing.T) {
10891089 require .Eventually (t , func () bool {
10901090 return netA .hasPeers () && netB .hasPeers () && netC .hasPeers () &&
10911091 netA .hasPeer (netB .service .ID ()) && netA .hasPeer (netC .service .ID ())
1092- }, 2 * time .Second , 50 * time .Millisecond )
1092+ }, 10 * time .Second , 50 * time .Millisecond )
10931093
10941094 // Wait for gossipsub heartbeat to establish mesh links.
10951095 // ListPeersForTopic returns subscribed peers but mesh links are established
@@ -1367,7 +1367,7 @@ func TestP2PwsStreamHandlerDedup(t *testing.T) {
13671367 // now allow the peer made outgoing connection to handle conn closing initiated by the other side
13681368 require .Eventually (t , func () bool {
13691369 return ! netA .hasPeers () && ! netB .hasPeers ()
1370- }, 2 * time .Second , 50 * time .Millisecond )
1370+ }, 10 * time .Second , 50 * time .Millisecond )
13711371}
13721372
13731373// TestP2PEnableGossipService_NodeDisable ensures that a node with EnableGossipService=false
@@ -1421,7 +1421,7 @@ func TestP2PEnableGossipService_NodeDisable(t *testing.T) {
14211421
14221422 require .Eventually (t , func () bool {
14231423 return netA .hasPeers () && netB .hasPeers ()
1424- }, 1 * time .Second , 50 * time .Millisecond )
1424+ }, 10 * time .Second , 50 * time .Millisecond )
14251425
14261426 testTag := protocol .AgreementVoteTag
14271427
0 commit comments