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>
This commit is contained in:
Rich Trott 2017-04-09 10:53:30 -07:00
parent 6f202ef857
commit 06c29a66d4
51 changed files with 101 additions and 106 deletions

View file

@ -66,7 +66,7 @@ server.listen(common.PIPE, common.mustCall(function() {
}));
req.on('error', function(e) {
common.fail(e.stack);
assert.fail(e.stack);
});
req.end();