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:
Antoine du Hamel authored and RafaelGSS committed 2026-01-13 10:04:26 -03:00
1 parent 585e200b40
commit 79d48f9441
57 files changed
+246 -286

No files matched your search

@@ -63,10 +63,10 @@ function override() {
}
};
options.agent = new https.Agent(options);
const req = https.request(options, function(res) {
const req = https.request(options, common.mustCall((res) => {
assert(req.socket.authorized);
server.close();
});
}));
req.on('error', function(err) {
throw err;
});