diff options
author | Rich Trott <rtrott@gmail.com> | 2017-04-09 10:53:30 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2017-04-12 14:25:33 -0700 |
commit | 06c29a66d479cf324037537d319dd2368b2692b7 (patch) | |
tree | 6746b995c6e87d11dfc9197fb088b92f371cdc18 /test/parallel/test-net-error-twice.js | |
parent | 6f202ef85710374a832cb38701302d999b18fe5f (diff) | |
download | node-new-06c29a66d479cf324037537d319dd2368b2692b7.tar.gz |
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-net-error-twice.js')
-rw-r--r-- | test/parallel/test-net-error-twice.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-net-error-twice.js b/test/parallel/test-net-error-twice.js index ce32be4882..4c2839d372 100644 --- a/test/parallel/test-net-error-twice.js +++ b/test/parallel/test-net-error-twice.js @@ -20,7 +20,7 @@ // USE OR OTHER DEALINGS IN THE SOFTWARE. 'use strict'; -const common = require('../common'); +require('../common'); const assert = require('assert'); const net = require('net'); @@ -41,7 +41,7 @@ const srv = net.createServer(function onConnection(conn) { conn.on('error', function(err) { errs.push(err); if (errs.length > 1 && errs[0] === errs[1]) - common.fail('Should not emit the same error twice'); + assert.fail('Should not emit the same error twice'); }); conn.on('close', function() { srv.unref(); |