summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/go-redis/redis/internal/internal_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/go-redis/redis/internal/internal_test.go')
-rw-r--r--vendor/github.com/go-redis/redis/internal/internal_test.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/vendor/github.com/go-redis/redis/internal/internal_test.go b/vendor/github.com/go-redis/redis/internal/internal_test.go
index 5c7000e1e..56ff611e1 100644
--- a/vendor/github.com/go-redis/redis/internal/internal_test.go
+++ b/vendor/github.com/go-redis/redis/internal/internal_test.go
@@ -2,15 +2,16 @@ package internal
import (
"testing"
- . "github.com/onsi/gomega"
"time"
+
+ . "github.com/onsi/gomega"
)
func TestRetryBackoff(t *testing.T) {
RegisterTestingT(t)
-
- for i := -1; i<= 8; i++ {
- backoff := RetryBackoff(i, 512*time.Millisecond)
+
+ for i := -1; i <= 16; i++ {
+ backoff := RetryBackoff(i, time.Millisecond, 512*time.Millisecond)
Expect(backoff >= 0).To(BeTrue())
Expect(backoff <= 512*time.Millisecond).To(BeTrue())
}