Skip to content

Commit

Permalink
test: add mustCall to openssl-client-cert-engine
Browse files Browse the repository at this point in the history
  • Loading branch information
li-boxuan committed Apr 29, 2019
1 parent f5e2ad7 commit 37e2e37
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 37e2e37

Please sign in to comment.