Skip to content

Commit

Permalink
test: refactor parallel/test-tls-ca-concat.js
Browse files Browse the repository at this point in the history
Implementing common.mustCall and changing the function to arrow function

Fixes : #14544
  • Loading branch information
juggernaut451 committed Mar 7, 2018
1 parent e6b823d commit ee77247
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 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
Expand All @@ -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();
});
}));

0 comments on commit ee77247

Please sign in to comment.