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
Rich Trott 2018-09-28 06:58:52 -07:00
parent d8baf67d4a
commit 87ea0caa9f
1 changed files with 0 additions and 1 deletions

View File

@ -43,7 +43,6 @@ function getall() {
function cb(res) {
res.resume();
done += 1;
res.on('end', global.gc);
}
function ongc() {