mirror of https://github.com/databricks/cli.git
This commit is contained in:
parent
78b39a43e6
commit
d060e52bc8
|
@ -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()
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue