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

Commit d347b2c

Browse files
committed
fix: add connect to wantlist tests
1 parent f5287d8 commit d347b2c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/bitswap/stat.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = (common, options) => {
1313
const describe = getDescribe(options)
1414
const it = getIt(options)
1515

16-
describe('.bitswap.stat', () => {
16+
describe('.bitswap.stat', function () {
1717
this.timeout(60 * 1000)
1818
let ipfs
1919

src/bitswap/wantlist.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ module.exports = (common, options) => {
2424
ipfsB = (await common.spawn({ type: 'go' })).api
2525
// Add key to the wantlist for ipfsB
2626
ipfsB.block.get(key).catch(() => {})
27+
await ipfsA.swarm.connect(ipfsB.peerId.addresses[0])
2728
})
2829

2930
after(() => common.clean())

0 commit comments

Comments
 (0)