func (d *daemon) initContext() (datastore.Context, error) { datastore.Register(d.dsDriver) ctx := datastore.Get() if ctx == nil { return nil, errors.New("context not available") } return ctx, nil }
func (s *S) SetUpTest(c *C) { s.ElasticTest.SetUpTest(c) datastore.Register(s.Driver()) s.ctx = datastore.Get() s.hs = NewStore() }
func (s *S) SetUpTest(c *C) { datastore.Register(s.Driver()) s.ctx = datastore.Get() }