Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions test/parallel/test-tls-addca.js
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
'use strict'
require('../common');
const common = require('../common');
const fixtures = require('../common/fixtures');

// Adding a CA certificate to contextWithCert should not also add it to
Expand DownExpand Up@@ -32,7 +32,7 @@ clientOptions.secureContext = contextWithoutCert;
connect({
client: clientOptions,
server: serverOptions,
}, function(err, pair, cleanup){
}, common.mustCall((err, pair, cleanup) =>{
assert(err);
assert.strictEqual(err.message, 'unable to verify the first certificate');
cleanup();
Expand All@@ -43,8 +43,8 @@ connect({
connect({
client: clientOptions,
server: serverOptions,
}, function(err, pair, cleanup){
}, common.mustCall((err, pair, cleanup) =>{
assert.ifError(err);
cleanup();
});
});
}));
}));