mirror of https://github.com/nodejs/node.git
test: improve test-gc-http-client
Calling `global.gc()` in multiple places leads to unreliability. Call it in the interval only. PR-URL: https://github.com/nodejs/node/pull/23145 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>pull/23148/merge
parent
d8baf67d4a
commit
87ea0caa9f
|
@ -43,7 +43,6 @@ function getall() {
|
|||
function cb(res) {
|
||||
res.resume();
|
||||
done += 1;
|
||||
res.on('end', global.gc);
|
||||
}
|
||||
|
||||
function ongc() {
|
||||
|
|
Loading…
Reference in New Issue