forked from mirror/redis
Fix test
This commit is contained in:
parent
0f5d67c102
commit
3fbf7df014
|
@ -10,7 +10,7 @@ import (
|
||||||
func TestRetryBackoff(t *testing.T) {
|
func TestRetryBackoff(t *testing.T) {
|
||||||
RegisterTestingT(t)
|
RegisterTestingT(t)
|
||||||
|
|
||||||
for i := -1; i <= 16; i++ {
|
for i := 0; i <= 16; i++ {
|
||||||
backoff := RetryBackoff(i, time.Millisecond, 512*time.Millisecond)
|
backoff := RetryBackoff(i, time.Millisecond, 512*time.Millisecond)
|
||||||
Expect(backoff >= 0).To(BeTrue())
|
Expect(backoff >= 0).To(BeTrue())
|
||||||
Expect(backoff <= 512*time.Millisecond).To(BeTrue())
|
Expect(backoff <= 512*time.Millisecond).To(BeTrue())
|
||||||
|
|
Loading…
Reference in New Issue