From 87ea0caa9f4837bd2dcaf14d4f97b2361b98c5f9 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Fri, 28 Sep 2018 06:58:52 -0700 Subject: 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(-) (limited to 'test') 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() { -- cgit v1.2.3