mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
test: s/assert.fail/common.fail as appropriate
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>
This commit is contained in:
1 parent
227db0ab21
commit
58f3fa17eb
25 files changed
+46
-56
No files matched your search
@@ -35,7 +35,7 @@ server.listen(0, '127.0.0.1', function() {
|
||||
method: 'GET',
|
||||
localAddress: invalidLocalAddress
|
||||
}, function(res) {
|
||||
assert.fail(null, null, 'unexpectedly got response from server');
|
||||
common.fail('unexpectedly got response from server');
|
||||
}).on('error', function(e) {
|
||||
console.log('client got error: ' + e.message);
|
||||
gotError = true;
|
||||
|
||||
Reference in new issue
Block a user