From 37e2e37b9933f2940ee259b75e690ffa4d780763 Mon Sep 17 00:00:00 2001 From: Boxuan Li Date: Mon, 29 Apr 2019 19:27:15 +0800 Subject: [PATCH] test: add mustCall to openssl-client-cert-engine --- test/addons/openssl-client-cert-engine/test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/addons/openssl-client-cert-engine/test.js b/test/addons/openssl-client-cert-engine/test.js index 1320e7b945d66d..9e7d507b07b7ac 100644 --- a/test/addons/openssl-client-cert-engine/test.js +++ b/test/addons/openssl-client-cert-engine/test.js @@ -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, @@ -57,4 +57,4 @@ const server = https.createServer(serverOptions, (req, res) => { })); req.end(); -}); +}));