mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
test: ensure assertions are reached on more tests
PR-URL: https://github.com/nodejs/node/pull/60759 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
57 files changed
+246
-286
No files matched your search
@@ -37,13 +37,13 @@ const options = {
|
||||
|
||||
const server = https.createServer(options, common.mustNotCall());
|
||||
|
||||
server.on('secureConnection', function(cleartext) {
|
||||
server.on('secureConnection', common.mustCall((cleartext) => {
|
||||
const s = cleartext.setTimeout(50, function() {
|
||||
cleartext.destroy();
|
||||
server.close();
|
||||
});
|
||||
assert.ok(s instanceof tls.TLSSocket);
|
||||
});
|
||||
}));
|
||||
|
||||
server.listen(0, function() {
|
||||
tls.connect({
|
||||
|
||||
Reference in new issue
Block a user