We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de2259d commit 6f1a600Copy full SHA for 6f1a600
p2p/peer_test.go
@@ -152,7 +152,7 @@ func TestPeerDisconnect(t *testing.T) {
152
// This test is supposed to verify that Peer can reliably handle
153
// multiple causes of disconnection occurring at the same time.
154
func TestPeerDisconnectRace(t *testing.T) {
155
- maybe := func() bool { return rand.Intn(1) == 1 }
+ maybe := func() bool { return rand.Intn(2) == 1 }
156
157
for i := 0; i < 1000; i++ {
158
protoclose := make(chan error)
0 commit comments