diff --git a/core/internal/features_test.go b/core/internal/features_test.go index 7ca1646b555..12326e91cad 100644 --- a/core/internal/features_test.go +++ b/core/internal/features_test.go @@ -653,12 +653,11 @@ func TestIntegration_SleepAdapter(t *testing.T) { t.Parallel() sleepSeconds := 3 - specJSON := "{\"initiators\":[{\"type\":\"web\"}],\"tasks\":[{\"type\":\"sleep\"},{\"type\":\"noop\"}]}" app, cleanup := cltest.NewApplication(t) defer cleanup() app.Start() - j := cltest.CreateSpecViaWeb(t, app, specJSON) + j := cltest.FixtureCreateJobViaWeb(t, app, "./testdata/sleep_job.json") runInput := fmt.Sprintf("{\"until\": \"%s\"}", time.Now().Local().Add(time.Second*time.Duration(sleepSeconds))) jr := cltest.CreateJobRunViaWeb(t, app, j, runInput) diff --git a/core/internal/testdata/sleep_job.json b/core/internal/testdata/sleep_job.json new file mode 100644 index 00000000000..8efab386258 --- /dev/null +++ b/core/internal/testdata/sleep_job.json @@ -0,0 +1,9 @@ +{ + "initiators": [ + {"type": "web"} + ], + "tasks": [ + {"type": "sleep"}, + {"type": "noop"} + ] +}