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 authored and Anna Henningsen committed 2017-06-21 22:42:51 +02:00
1 parent 4afa7483b1
commit 5cb3fac396
1 file changed
+1 -1
+1 -1
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() {