diff --git a/test/es-module/test-esm-exports-pending-deprecations.mjs b/test/es-module/test-esm-exports-deprecations.mjs similarity index 74% rename from test/es-module/test-esm-exports-pending-deprecations.mjs rename to test/es-module/test-esm-exports-deprecations.mjs index c5bcb17740c536..2dd2756e2ee844 100644 --- a/test/es-module/test-esm-exports-pending-deprecations.mjs +++ b/test/es-module/test-esm-exports-deprecations.mjs @@ -1,4 +1,3 @@ -// Flags: --pending-deprecation import { mustCall } from '../common/index.mjs'; import assert from 'assert'; @@ -15,7 +14,4 @@ process.addListener('warning', mustCall((warning) => { assert(warning.stack.includes(expectedWarnings[curWarning++]), warning.stack); }, expectedWarnings.length)); -(async () => { - await import('./test-esm-exports.mjs'); -})() -.catch((err) => console.error(err)); +await import('./test-esm-exports.mjs');