From 8741af668dbd03020fc5ee04365626cc32f1486c Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Fri, 28 Sep 2018 06:58:52 -0700 Subject: [PATCH] test: fix unreliable test-gc-http-client Calling `global.gc()` in multiple places leads to unreliability. Call it in the interval only. Fixes: https://github.com/nodejs/node/issues/22336 --- 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() {