Skip to content

Commit

Permalink
test: refactor parallel/test-tls-addca
Browse files Browse the repository at this point in the history
PR-URL: #18798
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Matheus Marchini <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Daniel Bevenius <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
  • Loading branch information
juggernaut451 authored and MylesBorins committed Aug 16, 2018
1 parent f534bd8 commit 35e691c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/parallel/test-tls-addca.js
Original file line number Diff line number Diff 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 Down Expand 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();
});
});
}));
}));

0 comments on commit 35e691c

Please sign in to comment.