test: use mustNotCall in test-http-eof-on-connect

Confirm that callback is not being invoked in
test-http-eof-on-connect.js.

PR-URL: https://github.com/nodejs/node/pull/13587
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Rich Trott 2017-06-09 13:12:39 -07:00
parent b71d67795a
commit 77d575d005

View File

@ -29,7 +29,7 @@ const http = require('http');
// It is separate from test-http-malformed-request.js because it is only
// reproduceable on the first packet on the first connection to a server.
const server = http.createServer(common.noop);
const server = http.createServer(common.mustNotCall());
server.listen(0);
server.on('listening', function() {