Skip to content

Commit 5cb3fac

Browse files
Trottaddaleax
authored andcommitted
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 <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 4afa748 commit 5cb3fac

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)