From fd97bc5e73d273ed42d9fa423a242975fb1be52c Mon Sep 17 00:00:00 2001 From: Nils Dralle Date: Sat, 3 Apr 2021 16:43:24 +0200 Subject: [PATCH] test: remove unnecessary body from .mustNotCall --- .../parallel/test-https-selfsigned-no-keycertsign-no-crash.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/parallel/test-https-selfsigned-no-keycertsign-no-crash.js b/test/parallel/test-https-selfsigned-no-keycertsign-no-crash.js index 916f905aa13976..07b3ab587d126b 100644 --- a/test/parallel/test-https-selfsigned-no-keycertsign-no-crash.js +++ b/test/parallel/test-https-selfsigned-no-keycertsign-no-crash.js @@ -93,8 +93,6 @@ httpsServer.on('listening', () => { httpsServer.close(); })); - req.on('error', common.mustNotCall((e) => { - httpsServer.close(); - })); + req.on('error', common.mustNotCall()); req.end(); });