test: add async/await tests

This commit is contained in:
Dirk McCormick
2019-04-12 15:53:17 +08:00
committed by Jacob Heun
parent e18a3d51a6
commit 5c8c6afea6
6 changed files with 529 additions and 235 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)