Skip to content

Commit

Permalink
sleeping 1ms can still starve other processes sometimes
Browse files Browse the repository at this point in the history
sleep 10ms to let the test run
test used to fail about 1/200; haven't seen a failure in several thousand now.
  • Loading branch information
brianolson committed Aug 23, 2022
1 parent 924d2fb commit 2d7580c
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 2d7580c

Please sign in to comment.