diff --git a/core/coreapi/test/api_test.go b/core/coreapi/test/api_test.go index 23b8b6289d0..399722a839a 100644 --- a/core/coreapi/test/api_test.go +++ b/core/coreapi/test/api_test.go @@ -71,10 +71,10 @@ func (NodeProvider) MakeAPISwarm(ctx context.Context, fullIdentity bool, n int) c.Identity = ident c.Experimental.FilestoreEnabled = true - ds := datastore.NewMapDatastore() + ds := syncds.MutexWrap(datastore.NewMapDatastore()) r := &repo.Mock{ C: c, - D: syncds.MutexWrap(ds), + D: ds, K: keystore.NewMemKeystore(), F: filestore.NewFileManager(ds, filepath.Dir(os.TempDir())), }