Skip to content

Commit

Permalink
test: fix unreliable test-gc-http-client
Browse files Browse the repository at this point in the history
Calling `global.gc()` in multiple places leads to unreliability. Call it
in the interval only.

Fixes: nodejs#22336
  • Loading branch information
Trott committed Sep 28, 2018
1 parent 27f3d9a commit 8741af6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion test/sequential/test-gc-http-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ function getall() {
function cb(res) {
res.resume();
done += 1;
res.on('end', global.gc);
}

function ongc() {
Expand Down

0 comments on commit 8741af6

Please sign in to comment.