Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit 36e9749

Browse files
author
Pedro Santos
committed
chore: code review changes
1 parent 7873deb commit 36e9749

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/bitswap/wantlist.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module.exports = (createCommon, options) => {
2424
ipfsB = await common.setup()
2525

2626
// Add key to the wantlist for ipfsB
27-
ipfsB.block.get(key, () => {})
27+
ipfsB.block.get(key).catch(() => {})
2828

2929
await ipfsA.swarm.connect(ipfsB.peerId.addresses[0])
3030
})
@@ -39,7 +39,7 @@ module.exports = (createCommon, options) => {
3939
return waitForWantlistKey(ipfsB, key)
4040
})
4141

42-
it('should get the wantlist by peer ID for a diffreent node', () => {
42+
it('should get the wantlist by peer ID for a different node', () => {
4343
return waitForWantlistKey(ipfsA, key, { peerId: ipfsB.peerId.id })
4444
})
4545

@@ -49,7 +49,7 @@ module.exports = (createCommon, options) => {
4949
const node = await createCommon().setup()
5050
await node.stop()
5151

52-
return expect(node.bitswap.stat()).to.eventually.be.rejected()
52+
return expect(node.bitswap.wantlist()).to.eventually.be.rejected()
5353
})
5454
})
5555
}

0 commit comments

Comments
 (0)