Skip to content

Commit 77d575d

Browse files
committed
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: #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>
1 parent b71d677 commit 77d575d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const http = require('http');
2929
// It is separate from test-http-malformed-request.js because it is only
3030
// reproduceable on the first packet on the first connection to a server.
3131

32-
const server = http.createServer(common.noop);
32+
const server = http.createServer(common.mustNotCall());
3333
server.listen(0);
3434

3535
server.on('listening', function() {

0 commit comments

Comments
 (0)