Skip to content

Commit 3948acc

Browse files
mcollinatargos
authored andcommittedJul 12, 2022
test: make node-api/test_buffer/test_finalizer not flaky
PR-URL: #43418 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
1 parent 58646ea commit 3948acc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎test/node-api/test_buffer/test_finalizer.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ process.on('uncaughtException', common.mustCall((err) => {
1616
throw new Error('finalizer error');
1717
}));
1818
}
19+
global.gc(true);
20+
await tick(common.platformTimeout(100));
1921
global.gc();
20-
await tick(10);
22+
await tick(common.platformTimeout(100));
23+
global.gc();
24+
await tick(common.platformTimeout(100));
2125
})().then(common.mustCall());

0 commit comments

Comments
 (0)
Please sign in to comment.