mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-06-19 20:21:22 +00:00
chore: refactor connection manager and registrar
This commit is contained in:
@ -374,8 +374,8 @@ describe('Dialing (direct, TCP)', () => {
|
||||
}
|
||||
|
||||
// 1 connection, because we know the peer in the multiaddr
|
||||
expect(libp2p.connectionManager._connections.size).to.equal(1)
|
||||
expect(remoteLibp2p.connectionManager._connections.size).to.equal(1)
|
||||
expect(libp2p.connectionManager.size).to.equal(1)
|
||||
expect(remoteLibp2p.connectionManager.size).to.equal(1)
|
||||
})
|
||||
|
||||
it('should coalesce parallel dials to the same error on failure', async () => {
|
||||
@ -409,8 +409,8 @@ describe('Dialing (direct, TCP)', () => {
|
||||
}
|
||||
|
||||
// 1 connection, because we know the peer in the multiaddr
|
||||
expect(libp2p.connectionManager._connections.size).to.equal(0)
|
||||
expect(remoteLibp2p.connectionManager._connections.size).to.equal(0)
|
||||
expect(libp2p.connectionManager.size).to.equal(0)
|
||||
expect(remoteLibp2p.connectionManager.size).to.equal(0)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
Reference in New Issue
Block a user