From 6dfc3626f492065154b9e28c6496d1ee00d6d414 Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Wed, 6 Nov 2024 18:10:35 +0530 Subject: [PATCH] chore: update normalizedStderr (#4319) --- test/utils/test-utils.js | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/test/utils/test-utils.js b/test/utils/test-utils.js index b6781d8a258..ca4556200c6 100644 --- a/test/utils/test-utils.js +++ b/test/utils/test-utils.js @@ -309,21 +309,6 @@ const normalizeStderr = (stderr) => { normalizedStderr = normalizedStderr.join("\n"); } - // TODO remove me after drop old Node.js versions and update deps - // Suppress warnings for Node.js version >= v22 - // [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead. - if (process.version.startsWith("v22")) { - normalizedStderr = normalizedStderr - .split("\n") - .filter((line) => { - return ( - !line.includes("DeprecationWarning: The `punycode` module is deprecated.") && - !line.includes("Use `node --trace-deprecation ...`") - ); - }) - .join("\n"); - } - // the warning below is causing CI failure on some jobs if (/Gracefully shutting down/.test(stderr)) { normalizedStderr = normalizedStderr.replace(