X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/dc021c3b57dcdebe464c148d55f9990a74e8246b..46f0c0faf4f032697d59c2d663018ae67d1059d4:/sdk/go/dispatch/dispatch_test.go diff --git a/sdk/go/dispatch/dispatch_test.go b/sdk/go/dispatch/dispatch_test.go index 25a4d2b879..2a9d84639e 100644 --- a/sdk/go/dispatch/dispatch_test.go +++ b/sdk/go/dispatch/dispatch_test.go @@ -18,14 +18,6 @@ var _ = Suite(&suite{}) type suite struct{} -func (s *suite) SetUpSuite(c *C) { - arvadostest.StartAPI() -} - -func (s *suite) TearDownSuite(c *C) { - arvadostest.StopAPI() -} - func (s *suite) TestTrackContainer(c *C) { arv, err := arvadosclient.MakeArvadosClient() c.Assert(err, Equals, nil) @@ -35,11 +27,12 @@ func (s *suite) TestTrackContainer(c *C) { time.AfterFunc(10*time.Second, func() { done <- false }) d := &Dispatcher{ Arv: arv, - RunContainer: func(dsp *Dispatcher, ctr arvados.Container, status <-chan arvados.Container) { + RunContainer: func(dsp *Dispatcher, ctr arvados.Container, status <-chan arvados.Container) error { for ctr := range status { c.Logf("%#v", ctr) } done <- true + return nil }, } d.TrackContainer(arvadostest.QueuedContainerUUID)