File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ func TestRetryWithTimeoutDefaultGracePeriod(t *testing.T) {
85
85
ctx := context .Background ()
86
86
87
87
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 ); {
89
89
time .Sleep (35 * time .Second )
90
90
n ++
91
91
}
@@ -102,7 +102,7 @@ func TestRetryWithTimeoutNoGracePeriod(t *testing.T) {
102
102
ctx := context .Background ()
103
103
104
104
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 ); {
106
106
time .Sleep (35 * time .Second )
107
107
n ++
108
108
}
You can’t perform that action at this time.
0 commit comments