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

Commit

Permalink
p2p: fix bug in TestPeerDisconnect (ethereum#20277)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rick authored and elizabethengelman committed Dec 30, 2019
1 parent 8a6bd87 commit 8489a29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/peer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8489a29

Please sign in to comment.