p2p: fix bug in TestPeerDisconnect (#20277)

This commit is contained in:
Rick
2019-12-30 16:10:58 -05:00
committed by Elizabeth Engelman
parent 8a6bd87d40
commit 8489a29645
+1 -1
View File
@@ -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)