Browse Source

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>
v6
Rich Trott 8 years ago
parent
commit
77d575d005
  1. 2
      test/parallel/test-http-eof-on-connect.js

2
test/parallel/test-http-eof-on-connect.js

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

Loading…
Cancel
Save