(conditionFunc func() (shouldRetry bool, err error, value interface{}), maxNumAttempts, timeToSleepMs int)
| 948 | } |
| 949 | |
| 950 | func (rt *RestTester) WaitForConditionShouldRetry(conditionFunc func() (shouldRetry bool, err error, value interface{}), maxNumAttempts, timeToSleepMs int) error { |
| 951 | sleeper := base.CreateSleeperFunc(maxNumAttempts, timeToSleepMs) |
| 952 | err, _ := base.RetryLoop(rt.Context(), "Wait for condition options", conditionFunc, sleeper) |
| 953 | if err != nil { |
| 954 | return err |
| 955 | } |
| 956 | |
| 957 | return nil |
| 958 | } |
| 959 | |
| 960 | func (rt *RestTester) SendAdminRequest(method, resource, body string) *TestResponse { |
| 961 | request := Request(method, rt.mustTemplateResource(resource), body) |
nothing calls this directly
no test coverage detected