Skip to content

Commit 53f19cc

Browse files
committed
fix(.dht.query): should return the other node in the query
1 parent 1eb2d81 commit 53f19cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/interface-tests/src/dht/query.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ export function testQuery (factory, options) {
5050

5151
for await (const event of nodeA.dht.query(nodeBId.id)) {
5252
if (event.name === 'PEER_RESPONSE') {
53-
peers.push(...event.closer.map(data => data.id))
53+
peers.push(...event.closer.map(data => data.id.toString()))
5454
}
5555
}
5656

57-
expect(peers).to.include(nodeBId.id)
57+
expect(peers).to.include(nodeBId.id.toString())
5858
})
5959
})
6060
}

0 commit comments

Comments
 (0)