INNER CODE UNIT · Go
waitChecker
ovh/utask · api/api_test.go:613
func waitChecker(dur time.Duration) iffy.Checker {
return func(r *http.Response, body string, respObject interface{}) error {
time.Sleep(dur)
return nil
}
}
func templatesWithInvalidInputs() []tasktemplate.TaskTemplate {
var tt []tasktemplate.TaskTemplate
for _, inp := range []input.Input{
{
Name: "input-with-redundant-regex",
LegalValues: []interface{}{"a", "b", "c"},
Regex: strPtr("^d.+$"),
},
{
Name: "input-with-bad-regex",
Regex: strPtr("^^[d.+$"),