diff options
-rw-r--r-- | test/common.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/common.js b/test/common.js index b451b455ea1..270115263e6 100644 --- a/test/common.js +++ b/test/common.js @@ -399,8 +399,7 @@ process.on('exit', function() { if (!exports.globalCheck) return; const leaked = leakedGlobals(); if (leaked.length > 0) { - console.error('Unknown globals: %s', leaked); - fail('Unknown global found'); + fail(`Unexpected global(s) found: ${leaked.join(', ')}`); } }); |