mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
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>
This commit is contained in:
parent
e06ad5faf9
commit
ca22c96f16
@ -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();
|
||||
});
|
||||
}));
|
||||
|
Loading…
Reference in New Issue
Block a user