This commit is contained in:
Shreyas Goenka 2024-10-22 15:57:27 +02:00
parent 78b39a43e6
commit d060e52bc8
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
2 changed files with 1 additions and 2 deletions

View File

@ -150,7 +150,7 @@ func runJobRunnerRestartTest(t *testing.T, jobSettings *jobs.JobSettings) {
m := mocks.NewMockWorkspaceClient(t) m := mocks.NewMockWorkspaceClient(t)
b.SetWorkpaceClient(m.WorkspaceClient) b.SetWorkpaceClient(m.WorkspaceClient)
ctx := context.Background() ctx := context.Background()
ctx = cmdio.InContext(ctx, cmdio.NewIO(flags.OutputText, &bytes.Buffer{}, &bytes.Buffer{}, &bytes.Buffer{}, "", "...")) ctx = cmdio.InContext(ctx, cmdio.NewIO(flags.OutputText, &bytes.Buffer{}, &bytes.Buffer{}, &bytes.Buffer{}, "", ""))
ctx = cmdio.NewContext(ctx, cmdio.NewLogger(flags.ModeAppend)) ctx = cmdio.NewContext(ctx, cmdio.NewLogger(flags.ModeAppend))
jobApi := m.GetMockJobsAPI() jobApi := m.GetMockJobsAPI()

View File

@ -101,7 +101,6 @@ task or a Python wheel task, the second example applies.
} }
runOptions.NoWait = noWait runOptions.NoWait = noWait
var output output.RunOutput var output output.RunOutput
if restart { if restart {
output, err = runner.Restart(ctx, &runOptions) output, err = runner.Restart(ctx, &runOptions)