Skip to content

Commit 42bfa85

Browse files
committed
Fix compilation errors in tests.
1 parent 3a49453 commit 42bfa85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/backoff/backoff_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func TestRetryWithTimeoutDefaultGracePeriod(t *testing.T) {
8585
ctx := context.Background()
8686

8787
var n int
88-
for r := BeginWithOptions(1*time.Minute, WithDelay(FixedDelay(1*time.Second))); r.Continue(ctx); {
88+
for r := NewRetryLoopWithOptions(1*time.Minute, WithDelay(FixedDelay(1*time.Second))); r.Continue(ctx); {
8989
time.Sleep(35 * time.Second)
9090
n++
9191
}
@@ -102,7 +102,7 @@ func TestRetryWithTimeoutNoGracePeriod(t *testing.T) {
102102
ctx := context.Background()
103103

104104
var n int
105-
for r := BeginWithOptions(1*time.Minute, WithDelay(FixedDelay(1*time.Second)), WithGracePeriod(0)); r.Continue(ctx); {
105+
for r := NewRetryLoopWithOptions(1*time.Minute, WithDelay(FixedDelay(1*time.Second)), WithGracePeriod(0)); r.Continue(ctx); {
106106
time.Sleep(35 * time.Second)
107107
n++
108108
}

0 commit comments

Comments
 (0)