- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestExponentialBackoff (0.35 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/wait/wait_test.go
if now.Add(3 * time.Second).Before(time.Now()) { t.Errorf("JitterUntil did not returned after predefined period with negative jitter factor when the stop chan was closed inside the func") } } func TestExponentialBackoff(t *testing.T) { // exits immediately i := 0 err := ExponentialBackoff(Backoff{Factor: 1.0}, func() (bool, error) { i++ return false, nil }) if err != ErrWaitTimeout || i != 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 26 16:28:45 UTC 2024 - 41.1K bytes - Viewed (0)