mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-04 15:22:55 +00:00
p2p: fix bug in TestPeerDisconnect (#20277)
This commit is contained in:
parent
de2259d27c
commit
6f1a600f6c
1 changed files with 1 additions and 1 deletions
|
|
@ -152,7 +152,7 @@ func TestPeerDisconnect(t *testing.T) {
|
||||||
// This test is supposed to verify that Peer can reliably handle
|
// This test is supposed to verify that Peer can reliably handle
|
||||||
// multiple causes of disconnection occurring at the same time.
|
// multiple causes of disconnection occurring at the same time.
|
||||||
func TestPeerDisconnectRace(t *testing.T) {
|
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++ {
|
for i := 0; i < 1000; i++ {
|
||||||
protoclose := make(chan error)
|
protoclose := make(chan error)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue