Skip to content

Commit 5c6b99f

Browse files
committed
fixup: check listeners before as well
1 parent e817a8b commit 5c6b99f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/parallel/test-http-agent-keepalive.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ function checkListeners(socket) {
150150
socket.off('free', callback);
151151
socket.off('close', callback);
152152
});
153+
assert.strictEqual(socket.listenerCount('error'), 1);
154+
assert.strictEqual(socket.listenerCount('end'), 2);
153155
socket.once('free', callback);
154156
socket.once('close', callback);
155157
}

0 commit comments

Comments
 (0)