Skip to content
This repository has been archived by the owner on Sep 30, 2023. It is now read-only.

Commit

Permalink
Set ipfs.dag to use memstore in replicate.test
Browse files Browse the repository at this point in the history
  • Loading branch information
shamb0t committed Dec 20, 2018
1 parent 5f9b153 commit a02eb70
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/replicate.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ Object.keys(testAPIs).forEach((IPFS) => {

// Use mem-store for faster testing (no disk IO)
const memstore = new MemStore()
ipfs1.object.put = memstore.put.bind(memstore)
ipfs1.object.get = memstore.get.bind(memstore)
ipfs2.object.put = memstore.put.bind(memstore)
ipfs2.object.get = memstore.get.bind(memstore)
ipfs1.dag.put = memstore.put.bind(memstore)
ipfs1.dag.get = memstore.get.bind(memstore)
ipfs2.dag.put = memstore.put.bind(memstore)
ipfs2.dag.get = memstore.get.bind(memstore)

// Create an identity for each peers
testIdentity = await IdentityProvider.createIdentity({ id: 'userA', identityKeysPath, signingKeysPath })
Expand Down

0 comments on commit a02eb70

Please sign in to comment.