mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 21:58:48 +02:00
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:
parent
6f202ef857
commit
06c29a66d4
51 changed files with 101 additions and 106 deletions
|
@ -21,6 +21,7 @@
|
|||
|
||||
'use strict';
|
||||
const common = require('../common');
|
||||
const assert = require('assert');
|
||||
const http = require('http');
|
||||
|
||||
const invalidLocalAddress = '1.2.3.4';
|
||||
|
@ -43,7 +44,7 @@ server.listen(0, '127.0.0.1', common.mustCall(function() {
|
|||
method: 'GET',
|
||||
localAddress: invalidLocalAddress
|
||||
}, function(res) {
|
||||
common.fail('unexpectedly got response from server');
|
||||
assert.fail('unexpectedly got response from server');
|
||||
}).on('error', common.mustCall(function(e) {
|
||||
console.log('client got error: ' + e.message);
|
||||
server.close();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue