Skip to content

Commit

Permalink
fixup: check listeners before as well
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Sep 23, 2019
1 parent e817a8b commit 5c6b99f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/parallel/test-http-agent-keepalive.js
Expand Up @@ -150,6 +150,8 @@ function checkListeners(socket) {
socket.off('free', callback);
socket.off('close', callback);
});
assert.strictEqual(socket.listenerCount('error'), 1);
assert.strictEqual(socket.listenerCount('end'), 2);
socket.once('free', callback);
socket.once('close', callback);
}

0 comments on commit 5c6b99f

Please sign in to comment.