Skip to content
This repository was archived by the owner on May 21, 2024. It is now read-only.

Commit 8489a29

Browse files
Rickelizabethengelman
authored andcommitted
p2p: fix bug in TestPeerDisconnect (ethereum#20277)
1 parent 8a6bd87 commit 8489a29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

p2p/peer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ func TestPeerDisconnect(t *testing.T) {
152152
// This test is supposed to verify that Peer can reliably handle
153153
// multiple causes of disconnection occurring at the same time.
154154
func TestPeerDisconnectRace(t *testing.T) {
155-
maybe := func() bool { return rand.Intn(1) == 1 }
155+
maybe := func() bool { return rand.Intn(2) == 1 }
156156

157157
for i := 0; i < 1000; i++ {
158158
protoclose := make(chan error)

0 commit comments

Comments
 (0)