diff --git a/test/parallel/test-http-invalidheaderfield.js b/test/parallel/test-http-invalidheaderfield.js index 6bae65c86e726f..21be4c4d6d95e0 100644 --- a/test/parallel/test-http-invalidheaderfield.js +++ b/test/parallel/test-http-invalidheaderfield.js @@ -1,5 +1,6 @@ 'use strict'; const common = require('../common'); + const assert = require('assert'); const EventEmitter = require('events'); const http = require('http'); @@ -28,7 +29,7 @@ server.listen(0, function() { port: server.address().port, headers: {'testing 123': 123} }; - http.get(options, common.noop); + http.get(options, common.mustNotCall()); }, function(err) { ee.emit('done');