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

Commit

Permalink
fix: dht find peer and providers (#368)
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos authored and Alan Shaw committed Oct 15, 2018
1 parent e5d90e2 commit 40f796f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/src/dht/findpeer.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ module.exports = (createCommon, options) => {

it('should fail to find other peer if peer does not exist', (done) => {
nodeA.dht.findpeer('Qmd7qZS4T7xXtsNFdRoK1trfMs5zU94EpokQ9WFtxdPxsZ', (err, peer) => {
expect(err).to.not.exist()
expect(err).to.exist()
expect(peer).to.not.exist()
done()
})
Expand Down
2 changes: 1 addition & 1 deletion js/src/dht/findprovs.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ module.exports = (createCommon, options) => {
},
(cidV0, cb) => nodeA.dht.findprovs(cidV0, cb),
(provs, cb) => {
expect(provs.map((p) => p.toB58String()))
expect(provs.map((p) => p.id.toB58String()))
.to.eql([nodeB.peerId.id])
cb()
}
Expand Down

0 comments on commit 40f796f

Please sign in to comment.