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
@@ -57,7 +57,7 @@ server.listen(0, common.mustCall(() => {
|
||||
port: server.address().port,
|
||||
headers: headers,
|
||||
rejectUnauthorized: false
|
||||
}, (res) => {
|
||||
}, common.mustCall((res) => {
|
||||
assert.strictEqual(Object.keys(res.headers).length, expected);
|
||||
res.on('end', () => {
|
||||
if (++responses < maxAndExpected.length) {
|
||||
@@ -67,7 +67,7 @@ server.listen(0, common.mustCall(() => {
|
||||
}
|
||||
});
|
||||
res.resume();
|
||||
});
|
||||
}));
|
||||
req.maxHeadersCount = max;
|
||||
req.end();
|
||||
}, 3);
|
||||
|
||||
Reference in new issue
Block a user