mirror of
https://github.com/redis/go-redis.git
synced 2025-04-19 07:22:17 +03:00
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…
x
Reference in New Issue
Block a user