mirror of
https://github.com/nodejs/node.git
synced 2025-05-05 19:08:17 +00:00

Many tests use assert.fail(null, null, msg) where it would be simpler to use common.fail(msg). This is largely because common.fail() is fairly new. This commit makes the replacement when applicable. PR-URL: https://github.com/nodejs/node/pull/7735 Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
9 lines
236 B
JavaScript
9 lines
236 B
JavaScript
'use strict';
|
|
var common = require('../common');
|
|
|
|
process.on('beforeExit', common.mustCall(function() {
|
|
setTimeout(common.fail, 5);
|
|
process.exit(0); // Should execute immediately even if we schedule new work.
|
|
common.fail();
|
|
}));
|