Skip to content

Commit

Permalink
refine TestSenderSendInterval() for #34.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericwq committed Mar 21, 2024
1 parent 6e31575 commit a889a5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion network/sender_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ func TestSenderSendInterval(t *testing.T) {
}

gotInterval := client.sender.sendInterval()
if gotInterval != SEND_INTERVAL_MIN {
if gotInterval-SEND_INTERVAL_MIN <= 2 {
t.Errorf("#test sendInterval expect interval %d < %d\n", gotInterval, SEND_INTERVAL_MIN)
}

Expand Down

0 comments on commit a889a5b

Please sign in to comment.