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

fix: dht find peer and providers #368

Merged
merged 1 commit into from
Oct 15, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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