test: add async/await tests

This commit is contained in:
Dirk McCormick
2019-04-12 15:53:17 +08:00
parent 65c1888f54
commit 776a5246b5
6 changed files with 380 additions and 86 deletions

View File

@ -33,7 +33,7 @@ module.exports = (handler) => {
log('new connection', addr.toString())
const s = new Libp2pSocket(socket)
const s = new Libp2pSocket(socket, addr)
trackSocket(server, socket)
handler && handler(s)