mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-06-19 04:01:24 +00:00
chore: config types and dependencies update (#904)
BREAKING CHANGES: top level types were updated, multiaddr@9.0.0 is used, dialer and keychain internal property names changed and connectionManager minPeers is not supported anymore
This commit is contained in:
@ -23,6 +23,8 @@ describe('ping', () => {
|
||||
nodes[1].peerStore.addressBook.set(nodes[0].peerId, nodes[0].multiaddrs)
|
||||
})
|
||||
|
||||
afterEach(() => Promise.all(nodes.map(n => n.stop())))
|
||||
|
||||
it('ping once from peer0 to peer1 using a multiaddr', async () => {
|
||||
const ma = `${nodes[2].multiaddrs[0]}/p2p/${nodes[2].peerId.toB58String()}`
|
||||
const latency = await nodes[0].ping(ma)
|
||||
@ -56,6 +58,7 @@ describe('ping', () => {
|
||||
if (firstInvocation) {
|
||||
firstInvocation = false
|
||||
|
||||
// eslint-disable-next-line no-unreachable-loop
|
||||
for await (const data of stream) {
|
||||
return {
|
||||
value: data,
|
||||
|
Reference in New Issue
Block a user