diff options
author | Boxuan Li <liboxuan@connect.hku.hk> | 2019-04-29 19:27:15 +0800 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2019-05-03 06:22:30 +0200 |
commit | c903c99d4bac9e13a34e97a4a98bd290925fda68 (patch) | |
tree | e69f913d1d6886bb20bb69a9d451ba5e3f3df42d /test/addons | |
parent | be6b1a2b3a5e01491b829ac9a5ed7602807af2de (diff) | |
download | android-node-v8-c903c99d4bac9e13a34e97a4a98bd290925fda68.tar.gz android-node-v8-c903c99d4bac9e13a34e97a4a98bd290925fda68.tar.bz2 android-node-v8-c903c99d4bac9e13a34e97a4a98bd290925fda68.zip |
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>
Diffstat (limited to 'test/addons')
-rw-r--r-- | test/addons/openssl-client-cert-engine/test.js | 6 |
1 files 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 1320e7b945..9e7d507b07 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(); -}); +})); |