summaryrefslogtreecommitdiff
path: root/test/sequential
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2018-09-28 06:58:52 -0700
committerRich Trott <rtrott@gmail.com>2018-10-01 21:48:00 -0700
commit87ea0caa9f4837bd2dcaf14d4f97b2361b98c5f9 (patch)
treeebb1cd3dbb47be4d8a39782ab21b9507c36a4a15 /test/sequential
parentd8baf67d4af2a9e388c82eccab2d3366a0a61c7e (diff)
downloadandroid-node-v8-87ea0caa9f4837bd2dcaf14d4f97b2361b98c5f9.tar.gz
android-node-v8-87ea0caa9f4837bd2dcaf14d4f97b2361b98c5f9.tar.bz2
android-node-v8-87ea0caa9f4837bd2dcaf14d4f97b2361b98c5f9.zip
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>
Diffstat (limited to 'test/sequential')
-rw-r--r--test/sequential/test-gc-http-client.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/test/sequential/test-gc-http-client.js b/test/sequential/test-gc-http-client.js
index 431c6387e1..2eea09652a 100644
--- a/test/sequential/test-gc-http-client.js
+++ b/test/sequential/test-gc-http-client.js
@@ -43,7 +43,6 @@ function getall() {
function cb(res) {
res.resume();
done += 1;
- res.on('end', global.gc);
}
function ongc() {