good morning!!!!

Skip to content
Snippets Groups Projects
Commit 6f1a600f authored by Rick's avatar Rick Committed by Felix Lange
Browse files

p2p: fix bug in TestPeerDisconnect (#20277)

parent de2259d2
No related branches found
No related tags found
No related merge requests found
......@@ -152,7 +152,7 @@ func TestPeerDisconnect(t *testing.T) {
// This test is supposed to verify that Peer can reliably handle
// multiple causes of disconnection occurring at the same time.
func TestPeerDisconnectRace(t *testing.T) {
maybe := func() bool { return rand.Intn(1) == 1 }
maybe := func() bool { return rand.Intn(2) == 1 }
for i := 0; i < 1000; i++ {
protoclose := make(chan error)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment