Skip to content

Commit

Permalink
test: make module test pass with NODE_PENDING_DEPRECATION
Browse files Browse the repository at this point in the history
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
  • Loading branch information
addaleax committed Mar 30, 2019
1 parent e4e2b0c commit bd3f6f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/sequential/test-module-loading.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ const path = require('path');

const backslash = /\\/g;

process.on('warning', common.mustNotCall());
if (!process.env.NODE_PENDING_DEPRECATION)
process.on('warning', common.mustNotCall());

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

Expand Down

0 comments on commit bd3f6f4

Please sign in to comment.