WaitForCondition runs a retry loop that evaluates the provided function, and terminates when the function returns true.
(successFunc func() bool)
| 923 | // WaitForCondition runs a retry loop that evaluates the provided function, and terminates |
| 924 | // when the function returns true. |
| 925 | func (rt *RestTester) WaitForCondition(successFunc func() bool) error { |
| 926 | return rt.WaitForConditionWithOptions(successFunc, 200, 100) |
| 927 | } |
| 928 | |
| 929 | func (rt *RestTester) WaitForConditionWithOptions(successFunc func() bool, maxNumAttempts, timeToSleepMs int) error { |
| 930 | return WaitForConditionWithOptions(rt.Context(), successFunc, maxNumAttempts, timeToSleepMs) |