Skip to content

Commit bd3f6f4

Browse files
committed
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: nodejs#26823
1 parent e4e2b0c commit bd3f6f4

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)