Skip to content

Commit

Permalink
test: fix test-http-connect
Browse files Browse the repository at this point in the history
Fixes: #18940
PR-URL: #18941
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
BridgeAR authored and addaleax committed Feb 22, 2018
1 parent 0a26280 commit fecc64d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-http-connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ server.on('connect', common.mustCall((req, socket, firstBodyChunk) => {
assert.strictEqual(socket.listeners('close').length, 0);
assert.strictEqual(socket.listeners('drain').length, 0);
assert.strictEqual(socket.listeners('data').length, 0);
assert.strictEqual(socket.listeners('end').length, 1);
assert.strictEqual(socket.listeners('end').length, 2);
assert.strictEqual(socket.listeners('error').length, 0);

socket.write('HTTP/1.1 200 Connection established\r\n\r\n');
Expand Down

0 comments on commit fecc64d

Please sign in to comment.