summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjuggernaut451 <singhjug1994@gmail.com>2018-03-03 00:01:54 +0530
committerBeth Griggs <Bethany.Griggs@uk.ibm.com>2018-12-03 21:01:53 +0000
commit146c488bf54550e251ed61b1bc56c87f2a96bfc5 (patch)
tree0a3ca23f903362b85beb276afddd8d971f6e4a14
parent4db289ca173d915d7779e3275d9c115932158808 (diff)
downloadnode-new-146c488bf54550e251ed61b1bc56c87f2a96bfc5.tar.gz
test: refactor parallel/test-tls-ca-concat.js
PR-URL: https://github.com/nodejs/node/pull/19092 Fixes: https://github.com/nodejs/node/issues/14544 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com>
-rw-r--r--test/parallel/test-tls-ca-concat.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/parallel/test-tls-ca-concat.js b/test/parallel/test-tls-ca-concat.js
index 3b4f3e7db7..efec4e649c 100644
--- a/test/parallel/test-tls-ca-concat.js
+++ b/test/parallel/test-tls-ca-concat.js
@@ -1,5 +1,5 @@
'use strict';
-require('../common');
+const common = require('../common');
const fixtures = require('../common/fixtures');
// Check ca option can contain concatenated certs by prepending an unrelated
@@ -18,7 +18,7 @@ connect({
cert: keys.agent6.cert,
key: keys.agent6.key,
},
-}, function(err, pair, cleanup) {
+}, common.mustCall((err, pair, cleanup) => {
assert.ifError(err);
return cleanup();
-});
+}));