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
@@ -33,15 +33,15 @@ const server = https.createServer({
|
||||
}));
|
||||
server.listen();
|
||||
|
||||
server.on('listening', function makeRequest() {
|
||||
server.on('listening', common.mustCall(function makeRequest() {
|
||||
https.get({
|
||||
port: this.address().port,
|
||||
rejectUnauthorized: false
|
||||
}, (res) => {
|
||||
}, common.mustCall((res) => {
|
||||
assert.strictEqual(res.statusCode, 200);
|
||||
res.on('end', () => {
|
||||
server.close();
|
||||
});
|
||||
res.resume();
|
||||
});
|
||||
});
|
||||
}));
|
||||
}));
|
||||
Reference in new issue
Block a user