diff options
Diffstat (limited to 'test/parallel/test-process-exit-from-before-exit.js')
-rw-r--r-- | test/parallel/test-process-exit-from-before-exit.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/parallel/test-process-exit-from-before-exit.js b/test/parallel/test-process-exit-from-before-exit.js index 21c20ca5bc..7f20c22f0b 100644 --- a/test/parallel/test-process-exit-from-before-exit.js +++ b/test/parallel/test-process-exit-from-before-exit.js @@ -21,9 +21,10 @@ 'use strict'; const common = require('../common'); +const assert = require('assert'); process.on('beforeExit', common.mustCall(function() { setTimeout(common.mustNotCall(), 5); process.exit(0); // Should execute immediately even if we schedule new work. - common.fail(); + assert.fail(); })); |