Skip to content

Commit aaa1155

Browse files
vasco-santosjacobheun
authored andcommittedMay 28, 2020
chore: uncomment local peer public key after connect test
1 parent aa5e232 commit aaa1155

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed
 

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
"libp2p-kad-dht": "^0.19.1",
107107
"libp2p-mdns": "^0.14.1",
108108
"libp2p-mplex": "^0.9.5",
109-
"libp2p-noise": "^1.1.0",
109+
"libp2p-noise": "^1.1.1",
110110
"libp2p-secio": "^0.12.4",
111111
"libp2p-tcp": "^0.14.1",
112112
"libp2p-webrtc-star": "^0.18.0",

‎test/peer-store/peer-store.node.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,8 @@ describe('libp2p.peerStore', () => {
3939
const localPeers = libp2p.peerStore.peers
4040
expect(localPeers.size).to.equal(1)
4141

42-
// TODO: needs https://github.com/NodeFactoryIo/js-libp2p-noise/issues/58
43-
// const publicKeyInLocalPeer = localPeers.get(remoteIdStr).id.pubKey
44-
// expect(publicKeyInLocalPeer.bytes).to.equalBytes(remoteLibp2p.peerId.pubKey.bytes)
42+
const publicKeyInLocalPeer = localPeers.get(remoteIdStr).id.pubKey
43+
expect(publicKeyInLocalPeer.bytes).to.equalBytes(remoteLibp2p.peerId.pubKey.bytes)
4544

4645
const publicKeyInRemotePeer = remoteLibp2p.peerStore.keyBook.get(libp2p.peerId)
4746
expect(publicKeyInRemotePeer).to.exist()

0 commit comments

Comments
 (0)
Please sign in to comment.