X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/fdadf2969c54edc7314ca50a629f3912998087b4..4257184a0fd276af7e1741dda8a7468a30b4a9c6:/lib/dispatchcloud/worker/worker_test.go diff --git a/lib/dispatchcloud/worker/worker_test.go b/lib/dispatchcloud/worker/worker_test.go index 4f9ba911cd..943fa7c710 100644 --- a/lib/dispatchcloud/worker/worker_test.go +++ b/lib/dispatchcloud/worker/worker_test.go @@ -25,6 +25,7 @@ func (suite *WorkerSuite) TestProbeAndUpdate(c *check.C) { bootTimeout := time.Minute probeTimeout := time.Second + ac := arvados.NewClientFromEnv() is, err := (&test.StubDriver{}).InstanceSet(nil, "test-instance-set-id", nil, logger) c.Assert(err, check.IsNil) inst, err := is.Create(arvados.InstanceType{}, "", nil, "echo InitCommand", nil) @@ -192,6 +193,7 @@ func (suite *WorkerSuite) TestProbeAndUpdate(c *check.C) { "crunch-run --list": trial.respRun, } wp := &Pool{ + arvClient: ac, newExecutor: func(cloud.Instance) Executor { return exr }, bootProbeCommand: "bootprobe", timeoutBooting: bootTimeout,