test: make test-http-expect-continue more strict

In test-http-expect-continue, verify that the request listener is not
called.

PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
Rich Trott 2018-03-28 21:24:50 -07:00
parent 97ace04492
commit 085ad541d9

View File

@ -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();