From 9b30a635e028727289b3651a5a613775b08d64f8 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Fri, 28 Sep 2018 06:58:52 -0700 Subject: [PATCH] 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 Reviewed-By: Luigi Pinca Reviewed-By: Trivikram Kamat Reviewed-By: Sakthipriyan Vairamani Reviewed-By: James M Snell --- test/sequential/test-gc-http-client.js | 1 - 1 file changed, 1 deletion(-) diff --git a/test/sequential/test-gc-http-client.js b/test/sequential/test-gc-http-client.js index 431c6387e171a0..2eea09652a50d9 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() {