(successFunc func() bool, maxNumAttempts, timeToSleepMs int)
| 927 | } |
| 928 | |
| 929 | func (rt *RestTester) WaitForConditionWithOptions(successFunc func() bool, maxNumAttempts, timeToSleepMs int) error { |
| 930 | return WaitForConditionWithOptions(rt.Context(), successFunc, maxNumAttempts, timeToSleepMs) |
| 931 | } |
| 932 | |
| 933 | func WaitForConditionWithOptions(ctx context.Context, successFunc func() bool, maxNumAttempts, timeToSleepMs int) error { |
| 934 | waitForSuccess := func() (shouldRetry bool, err error, value interface{}) { |