From 77d575d0057692413f0c26ad90425077c40f339f Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Fri, 9 Jun 2017 13:12:39 -0700 Subject: [PATCH] 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 Reviewed-By: Refael Ackermann Reviewed-By: Anna Henningsen Reviewed-By: Gibson Fahnestock Reviewed-By: Luigi Pinca Reviewed-By: James M Snell --- test/parallel/test-http-eof-on-connect.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-http-eof-on-connect.js b/test/parallel/test-http-eof-on-connect.js index 87c6aeca5fb480..7e244354c1cb88 100644 --- a/test/parallel/test-http-eof-on-connect.js +++ b/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() {