We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e817a8b commit 5c6b99fCopy full SHA for 5c6b99f
1 file changed
test/parallel/test-http-agent-keepalive.js
@@ -150,6 +150,8 @@ function checkListeners(socket) {
150
socket.off('free', callback);
151
socket.off('close', callback);
152
});
153
+ assert.strictEqual(socket.listenerCount('error'), 1);
154
+ assert.strictEqual(socket.listenerCount('end'), 2);
155
socket.once('free', callback);
156
socket.once('close', callback);
157
}
0 commit comments