fix: onConnect should not add addr to the addressBook

This commit is contained in:
Vasco Santos
2020-05-13 10:30:57 +02:00
committed by Jacob Heun
parent 8bf5a70bb8
commit 2b45fee0ed
3 changed files with 3 additions and 7 deletions

View File

@ -242,8 +242,8 @@ describe('Identify', () => {
expect(connection).to.exist()
// Wait for peer store to be updated
// Dialer._createDialTarget (add), Connected (add), Identify (replace)
await pWaitFor(() => peerStoreSpySet.callCount === 1 && peerStoreSpyAdd.callCount === 2)
// Dialer._createDialTarget (add), Identify (replace)
await pWaitFor(() => peerStoreSpySet.callCount === 1 && peerStoreSpyAdd.callCount === 1)
expect(libp2p.identifyService.identify.callCount).to.equal(1)
// The connection should have no open streams