Skip to content

Commit

Permalink
Merge pull request #6222 from ipfs/fix/dht-321
Browse files Browse the repository at this point in the history
test(coreapi): use a thread-safe datastore everywhere
  • Loading branch information
Stebalien committed May 9, 2019
2 parents 1081d04 + f8c8f38 commit a506625
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/coreapi/test/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())),
}
Expand Down

0 comments on commit a506625

Please sign in to comment.