maybe retured false always

This commit is contained in:
rick 2019-11-13 14:08:40 +09:00
parent a4af734328
commit 8d3c97fa67

View file

@ -150,7 +150,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)