Skip to content

Commit

Permalink
tests: TestSlowPeerDisconnect less flakey (#4453)
Browse files Browse the repository at this point in the history
sleeping 1ms can still starve other processes sometimes, sleep 10ms instead
  • Loading branch information
brianolson authored Aug 23, 2022
1 parent b89953a commit 87867c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion network/wsNetwork_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1467,7 +1467,7 @@ func TestSlowPeerDisconnection(t *testing.T) {
now := time.Now()
expire := now.Add(5 * time.Second)
for {
time.Sleep(time.Millisecond)
time.Sleep(10 * time.Millisecond)
if len(peer.sendBufferHighPrio)+len(peer.sendBufferBulk) == 0 {
break
}
Expand Down

0 comments on commit 87867c9

Please sign in to comment.