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 <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
  • 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.