Skip to content

Commit 31fe3b2

Browse files
mcollinalpinca
authored andcommitted
test: make sure http pipelining does not emit a warning
PR-URL: #37964 Refs: #37937 Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 2fa7d33 commit 31fe3b2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/parallel/test-http-many-ended-pipelines.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// USE OR OTHER DEALINGS IN THE SOFTWARE.
2121

2222
'use strict';
23-
require('../common');
23+
const common = require('../common');
2424

2525
// No warnings should happen!
2626
const trace = console.trace;
@@ -59,3 +59,5 @@ server.listen(0, function() {
5959
client.end();
6060
client.pipe(process.stdout);
6161
});
62+
63+
process.on('warning', common.mustNotCall());

0 commit comments

Comments
 (0)