test: add mustCall to openssl-client-cert-engine

PR-URL: https://github.com/nodejs/node/pull/27474
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Boxuan Li 2019-04-29 19:27:15 +08:00 committed by Daniel Bevenius
parent be6b1a2b3a
commit c903c99d4b

View File

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