Skip to content

Commit

Permalink
test: fix flaky test-zlib-unused-weak.js
Browse files Browse the repository at this point in the history
PR-URL: #38149
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
  • Loading branch information
oyyd authored and targos committed May 1, 2021
1 parent aa0d814 commit e999da7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/parallel/test-zlib-unused-weak.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e999da7

Please sign in to comment.