From 31fe3b215f175176d6474439f932bb5e7a12b573 Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Mon, 29 Mar 2021 13:15:55 +0200 Subject: [PATCH] test: make sure http pipelining does not emit a warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/37964 Refs: https://github.com/nodejs/node/issues/37937 Reviewed-By: Robert Nagy Reviewed-By: James M Snell Reviewed-By: Luigi Pinca Reviewed-By: Michaƫl Zasso Reviewed-By: Colin Ihrig --- test/parallel/test-http-many-ended-pipelines.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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());