From 36e9749e022cfcf1f414b53e0fd147110527cb6c Mon Sep 17 00:00:00 2001 From: Pedro Santos Date: Fri, 29 Nov 2019 09:47:16 +0000 Subject: [PATCH] chore: code review changes --- src/bitswap/wantlist.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bitswap/wantlist.js b/src/bitswap/wantlist.js index 573bdf3d5..1f11e8ce0 100644 --- a/src/bitswap/wantlist.js +++ b/src/bitswap/wantlist.js @@ -24,7 +24,7 @@ module.exports = (createCommon, options) => { ipfsB = await common.setup() // Add key to the wantlist for ipfsB - ipfsB.block.get(key, () => {}) + ipfsB.block.get(key).catch(() => {}) await ipfsA.swarm.connect(ipfsB.peerId.addresses[0]) }) @@ -39,7 +39,7 @@ module.exports = (createCommon, options) => { return waitForWantlistKey(ipfsB, key) }) - it('should get the wantlist by peer ID for a diffreent node', () => { + it('should get the wantlist by peer ID for a different node', () => { return waitForWantlistKey(ipfsA, key, { peerId: ipfsB.peerId.id }) }) @@ -49,7 +49,7 @@ module.exports = (createCommon, options) => { const node = await createCommon().setup() await node.stop() - return expect(node.bitswap.stat()).to.eventually.be.rejected() + return expect(node.bitswap.wantlist()).to.eventually.be.rejected() }) }) }