mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
test: increase usage of assert.ifError()
PR-URL: https://github.com/nodejs/node/pull/10543 Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
1 parent
1555ced404
commit
7822d86ee6
39 files changed
+77
-95
No files matched your search
@@ -51,9 +51,7 @@ function testHttps() {
|
||||
|
||||
httpsServer.listen(0, function(er) {
|
||||
console.log(`test https server listening on port ${this.address().port}`);
|
||||
|
||||
if (er) throw er;
|
||||
|
||||
assert.ifError(er);
|
||||
https.get({
|
||||
method: 'GET',
|
||||
path: '/' + (counter++),
|
||||
|
||||
Reference in new issue
Block a user