From 0310df8fe6c170e2d3d476b006f8b54f2fda413a Mon Sep 17 00:00:00 2001 From: juggernaut451 Date: Sat, 3 Mar 2018 00:01:54 +0530 Subject: [PATCH] test: refactor parallel/test-tls-ca-concat.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/19092 Fixes: https://github.com/nodejs/node/issues/14544 Reviewed-By: Richard Lau Reviewed-By: Colin Ihrig Reviewed-By: Anna Henningsen Reviewed-By: Tobias Nießen Reviewed-By: James M Snell --- test/parallel/test-tls-ca-concat.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-tls-ca-concat.js b/test/parallel/test-tls-ca-concat.js index 3b4f3e7db74115..efec4e649c9506 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(); -}); +}));