fix: registrar should filter the disconnected conn (#532)

* fix: registrar on disconnect only when no connections

* chore: add test
This commit is contained in:
Vasco Santos
2020-01-14 12:26:24 +01:00
committed by Jacob Heun
parent 4222c49556
commit bb2e56e6c7
3 changed files with 43 additions and 2 deletions

View File

@ -27,7 +27,8 @@ module.exports.createMockConnection = async (properties = {}) => {
},
direction: 'outbound',
encryption: '/secio/1.0.0',
multiplexer: '/mplex/6.7.0'
multiplexer: '/mplex/6.7.0',
status: 'open'
},
newStream: (protocols) => {
const id = streamId++