From e999da7004fae94517ad2edb83ef0d43e134d06b Mon Sep 17 00:00:00 2001 From: Ouyang Yadong Date: Thu, 8 Apr 2021 17:48:03 +0800 Subject: [PATCH] test: fix flaky test-zlib-unused-weak.js PR-URL: https://github.com/nodejs/node/pull/38149 Reviewed-By: Richard Lau Reviewed-By: James M Snell Reviewed-By: Anna Henningsen Reviewed-By: Luigi Pinca Reviewed-By: Matteo Collina --- test/parallel/test-zlib-unused-weak.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/parallel/test-zlib-unused-weak.js b/test/parallel/test-zlib-unused-weak.js index e74384eccf05c7..2c1e2d729030dd 100644 --- a/test/parallel/test-zlib-unused-weak.js +++ b/test/parallel/test-zlib-unused-weak.js @@ -6,6 +6,7 @@ const zlib = require('zlib'); // Tests that native zlib handles start out their life as weak handles. +global.gc(); const before = process.memoryUsage().external; for (let i = 0; i < 100; ++i) zlib.createGzip();