Skip to content

Commit 1ad4041

Browse files
committed
test: wrap callbacks in common.must[Not]Call
1 parent c785f4a commit 1ad4041

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/parallel/test-https-selfsigned-no-keycertsign-no-crash.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@ httpsServer.on('listening', () => {
8282
ca: cert
8383
};
8484
// Try to connect
85-
const req = https.request(clientOptions, (res) => {
85+
const req = https.request(clientOptions, common.mustCall((res) => {
8686
httpsServer.close();
87-
});
87+
}));
8888

89-
req.on('error', (e) => {
89+
req.on('error', common.mustNotCall((e) => {
9090
httpsServer.close();
91-
});
91+
}));
9292
req.end();
9393
});

0 commit comments

Comments
 (0)