Skip to content

Commit 3948acc

Browse files
mcollinatargos
authored andcommitted
test: make node-api/test_buffer/test_finalizer not flaky
PR-URL: #43418 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
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)