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:
cjihrig authored and Italo A. Casas committed 2017-01-30 12:08:25 -05:00
1 parent 1555ced404
commit 7822d86ee6
39 files changed
+77 -95

No files matched your search

+1 -3
View File
@@ -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++),