diff --git a/test/parallel/test-http-many-ended-pipelines.js b/test/parallel/test-http-many-ended-pipelines.js index eb6f1341c55927..20371e7e562721 100644 --- a/test/parallel/test-http-many-ended-pipelines.js +++ b/test/parallel/test-http-many-ended-pipelines.js @@ -20,7 +20,7 @@ // USE OR OTHER DEALINGS IN THE SOFTWARE. 'use strict'; -require('../common'); +const common = require('../common'); // No warnings should happen! const trace = console.trace; @@ -59,3 +59,5 @@ server.listen(0, function() { client.end(); client.pipe(process.stdout); }); + +process.on('warning', common.mustNotCall());