4 "git.curoverse.com/arvados.git/sdk/go/arvadosclient"
5 "git.curoverse.com/arvados.git/sdk/go/arvadostest"
10 // Gocheck boilerplate
11 var _ = Suite(&DispatchTestSuite{})
13 type DispatchTestSuite struct{}
15 func (s *DispatchTestSuite) SetUpSuite(c *C) {
16 arvadostest.StartAPI()
19 func (s *DispatchTestSuite) TearDownSuite(c *C) {
23 func (s *DispatchTestSuite) TestTrackContainer(c *C) {
24 arv, err := arvadosclient.MakeArvadosClient()
25 c.Assert(err, Equals, nil)
27 d := &Dispatcher{Arv: arv}
28 d.trackers = make(map[string]*runTracker)
30 d.TrackContainer(arvadostest.QueuedContainerUuid)
31 _, tracking := d.trackers[arvadostest.QueuedContainerUuid]
32 c.Assert(tracking, Equals, true)