blob: 5c7000e1ea582250930a652db5cf47affde52d36 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
package internal
import (
"testing"
. "github.com/onsi/gomega"
"time"
)
func TestRetryBackoff(t *testing.T) {
RegisterTestingT(t)
for i := -1; i<= 8; i++ {
backoff := RetryBackoff(i, 512*time.Millisecond)
Expect(backoff >= 0).To(BeTrue())
Expect(backoff <= 512*time.Millisecond).To(BeTrue())
}
}
|