Skip to content

Commit abfaefa

Browse files
addaleaxBethGriggs
authored andcommitted
test: make module test pass with NODE_PENDING_DEPRECATION
Some people set the `NODE_PENDING_DEPRECATION` environment variable globally. This makes the test added in 115f0f5 pass when that is the case. Refs: #26823 PR-URL: #27019 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Myles Borins <[email protected]>
1 parent 703f154 commit abfaefa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/sequential/test-module-loading.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ const path = require('path');
2929

3030
const backslash = /\\/g;
3131

32-
process.on('warning', common.mustNotCall());
32+
if (!process.env.NODE_PENDING_DEPRECATION)
33+
process.on('warning', common.mustNotCall());
3334

3435
console.error('load test-module-loading.js');
3536

0 commit comments

Comments
 (0)