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

Commit 40f796f

Browse files
vasco-santosAlan Shaw
authored and
Alan Shaw
committed
fix: dht find peer and providers (#368)
1 parent e5d90e2 commit 40f796f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

js/src/dht/findpeer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ module.exports = (createCommon, options) => {
4848

4949
it('should fail to find other peer if peer does not exist', (done) => {
5050
nodeA.dht.findpeer('Qmd7qZS4T7xXtsNFdRoK1trfMs5zU94EpokQ9WFtxdPxsZ', (err, peer) => {
51-
expect(err).to.not.exist()
51+
expect(err).to.exist()
5252
expect(peer).to.not.exist()
5353
done()
5454
})

js/src/dht/findprovs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ module.exports = (createCommon, options) => {
6060
},
6161
(cidV0, cb) => nodeA.dht.findprovs(cidV0, cb),
6262
(provs, cb) => {
63-
expect(provs.map((p) => p.toB58String()))
63+
expect(provs.map((p) => p.id.toB58String()))
6464
.to.eql([nodeB.peerId.id])
6565
cb()
6666
}

0 commit comments

Comments
 (0)