diff --git a/test/node-api/test_buffer/test_finalizer.js b/test/node-api/test_buffer/test_finalizer.js index e9bdd53c6dff8e..372116bb3a05fc 100644 --- a/test/node-api/test_buffer/test_finalizer.js +++ b/test/node-api/test_buffer/test_finalizer.js @@ -16,6 +16,10 @@ process.on('uncaughtException', common.mustCall((err) => { throw new Error('finalizer error'); })); } + global.gc(true); + await tick(common.platformTimeout(100)); global.gc(); - await tick(10); + await tick(common.platformTimeout(100)); + global.gc(); + await tick(common.platformTimeout(100)); })().then(common.mustCall());