Skip to content

Commit ee77247

Browse files
committed
test: refactor parallel/test-tls-ca-concat.js
Implementing common.mustCall and changing the function to arrow function Fixes : #14544
1 parent e6b823d commit ee77247

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-tls-ca-concat.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict';
2-
require('../common');
2+
const common = require('../common');
33
const fixtures = require('../common/fixtures');
44

55
// Check ca option can contain concatenated certs by prepending an unrelated
@@ -18,7 +18,7 @@ connect({
1818
cert: keys.agent6.cert,
1919
key: keys.agent6.key,
2020
},
21-
}, function(err, pair, cleanup) {
21+
}, common.mustCall((err, pair, cleanup) => {
2222
assert.ifError(err);
2323
return cleanup();
24-
});
24+
}));

0 commit comments

Comments
 (0)