summaryrefslogtreecommitdiff
path: root/test/parallel/test-domain-uncaught-exception.js
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2017-04-09 10:53:30 -0700
committerRich Trott <rtrott@gmail.com>2017-04-12 14:25:33 -0700
commit06c29a66d479cf324037537d319dd2368b2692b7 (patch)
tree6746b995c6e87d11dfc9197fb088b92f371cdc18 /test/parallel/test-domain-uncaught-exception.js
parent6f202ef85710374a832cb38701302d999b18fe5f (diff)
downloadandroid-node-v8-06c29a66d479cf324037537d319dd2368b2692b7.tar.gz
android-node-v8-06c29a66d479cf324037537d319dd2368b2692b7.tar.bz2
android-node-v8-06c29a66d479cf324037537d319dd2368b2692b7.zip
test: remove common.fail()
common.fail() was added to paste over issues with assert.fail() function signature. assert.fail() has been updated to accept a single argument so common.fail() is no longer necessary. PR-URL: https://github.com/nodejs/node/pull/12293 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-domain-uncaught-exception.js')
-rw-r--r--test/parallel/test-domain-uncaught-exception.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/parallel/test-domain-uncaught-exception.js b/test/parallel/test-domain-uncaught-exception.js
index b13bf79b1a..b4a3d0d1d9 100644
--- a/test/parallel/test-domain-uncaught-exception.js
+++ b/test/parallel/test-domain-uncaught-exception.js
@@ -9,6 +9,7 @@
*/
const common = require('../common');
+const assert = require('assert');
const domain = require('domain');
const child_process = require('child_process');
@@ -183,14 +184,14 @@ if (process.argv[2] === 'child') {
test.expectedMessages.forEach(function(expectedMessage) {
if (test.messagesReceived === undefined ||
test.messagesReceived.indexOf(expectedMessage) === -1)
- common.fail('test ' + test.fn.name + ' should have sent message: ' +
+ assert.fail('test ' + test.fn.name + ' should have sent message: ' +
expectedMessage + ' but didn\'t');
});
if (test.messagesReceived) {
test.messagesReceived.forEach(function(receivedMessage) {
if (test.expectedMessages.indexOf(receivedMessage) === -1) {
- common.fail('test ' + test.fn.name +
+ assert.fail('test ' + test.fn.name +
' should not have sent message: ' + receivedMessage +
' but did');
}