From d61977f03ed6952342aa2ed69a8fc515c2143d94 Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Thu, 1 Apr 2021 12:27:07 +0200 Subject: [PATCH] test: remove dead code `console.trace()` was used when printing the warning for a possible event listeners leak. It is no longer used since commit c6656db352 that introduced the `process.emitWarning()` API and used it to print the warning. PR-URL: https://github.com/nodejs/node/pull/38016 Reviewed-By: Colin Ihrig Reviewed-By: Rich Trott Reviewed-By: James M Snell --- test/parallel/test-http-many-ended-pipelines.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/test/parallel/test-http-many-ended-pipelines.js b/test/parallel/test-http-many-ended-pipelines.js index 20371e7e562721..8beece5f9aeeef 100644 --- a/test/parallel/test-http-many-ended-pipelines.js +++ b/test/parallel/test-http-many-ended-pipelines.js @@ -21,14 +21,6 @@ 'use strict'; const common = require('../common'); - -// No warnings should happen! -const trace = console.trace; -console.trace = function() { - trace.apply(console, arguments); - throw new Error('no tracing should happen here'); -}; - const http = require('http'); const net = require('net');