Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7874cb0

Browse filesBrowse files
juggernaut451MylesBorins
authored andcommitted
test: refactor parallel/test-tls-addca
PR-URL: #18798 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matheus Marchini <matheus@sthima.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
1 parent b3b5ac5 commit 7874cb0
Copy full SHA for 7874cb0

File tree

Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-tls-addca.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-tls-addca.js
+5-5Lines changed: 5 additions & 5 deletions
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
// Adding a CA certificate to contextWithCert should not also add it to
@@ -32,7 +32,7 @@ clientOptions.secureContext = contextWithoutCert;
3232
connect({
3333
client: clientOptions,
3434
server: serverOptions,
35-
}, function(err, pair, cleanup) {
35+
}, common.mustCall((err, pair, cleanup) => {
3636
assert(err);
3737
assert.strictEqual(err.message, 'unable to verify the first certificate');
3838
cleanup();
@@ -43,8 +43,8 @@ connect({
4343
connect({
4444
client: clientOptions,
4545
server: serverOptions,
46-
}, function(err, pair, cleanup) {
46+
}, common.mustCall((err, pair, cleanup) => {
4747
assert.ifError(err);
4848
cleanup();
49-
});
50-
});
49+
}));
50+
}));

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.