Skip to content

Commit

Permalink
test: add mustCall to openssl-client-cert-engine
Browse files Browse the repository at this point in the history
PR-URL: #27474
Reviewed-By: Sam Roberts <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
li-boxuan authored and targos committed May 4, 2019
1 parent fd17f37 commit 99e4a57
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/addons/openssl-client-cert-engine/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ const serverOptions = {
rejectUnauthorized: true
};

const server = https.createServer(serverOptions, (req, res) => {
const server = https.createServer(serverOptions, common.mustCall((req, res) => {
res.writeHead(200);
res.end('hello world');
}).listen(0, common.localhostIPv4, () => {
})).listen(0, common.localhostIPv4, common.mustCall(() => {
const clientOptions = {
method: 'GET',
host: common.localhostIPv4,
Expand All @@ -57,4 +57,4 @@ const server = https.createServer(serverOptions, (req, res) => {
}));

req.end();
});
}));

0 comments on commit 99e4a57

Please sign in to comment.