Skip to content

Commit

Permalink
test: make test-http-expect-continue more strict
Browse files Browse the repository at this point in the history
In test-http-expect-continue, verify that the request listener is not
called.

PR-URL: #19669
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
  • Loading branch information
Trott authored and targos committed Apr 2, 2018
1 parent 7043e95 commit 0b27416
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-http-expect-continue.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const handler = common.mustCall((req, res) => {
res.end(test_res_body);
});

const server = http.createServer();
const server = http.createServer(common.mustNotCall());
server.on('checkContinue', common.mustCall((req, res) => {
console.error('Server got Expect: 100-continue...');
res.writeContinue();
Expand Down

0 comments on commit 0b27416

Please sign in to comment.