Skip to content

Commit

Permalink
test: fix test-http-connect
Browse files Browse the repository at this point in the history
Fixes: nodejs#18940
PR-URL: nodejs#18941
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
BridgeAR authored and MayaLekova committed May 8, 2018
1 parent 625cc1c commit acc76b0
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 acc76b0

Please sign in to comment.