summaryrefslogtreecommitdiff
path: root/test/parallel/test-child-process-stdout-flush-exit.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-child-process-stdout-flush-exit.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-child-process-stdout-flush-exit.js')
-rw-r--r--test/parallel/test-child-process-stdout-flush-exit.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-child-process-stdout-flush-exit.js b/test/parallel/test-child-process-stdout-flush-exit.js
index 8737c4fd2a..f3fdf4949a 100644
--- a/test/parallel/test-child-process-stdout-flush-exit.js
+++ b/test/parallel/test-child-process-stdout-flush-exit.js
@@ -42,7 +42,7 @@ if (process.argv[2] === 'child') {
child.stderr.setEncoding('utf8');
child.stderr.on('data', function(data) {
- common.fail(`Unexpected parent stderr: ${data}`);
+ assert.fail(`Unexpected parent stderr: ${data}`);
});
// check if we receive both 'hello' at start and 'goodbye' at end