Skip to content

Commit

Permalink
test: remove dead code
Browse files Browse the repository at this point in the history
`console.trace()` was used when printing the warning for a possible
event listeners leak. It is no longer used since commit c6656db that
introduced the `process.emitWarning()` API and used it to print the
warning.

PR-URL: #38016
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
lpinca committed Apr 6, 2021
1 parent 8b05e32 commit d61977f
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions test/parallel/test-http-many-ended-pipelines.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down

0 comments on commit d61977f

Please sign in to comment.