Skip to content

Commit 224f3ae

Browse files
authored
test: reduce number of repetition in test-heapdump-shadowrealm.js
ShadowRealm garbage-collection is covered in another test. Reduce the number of repetition in test-heapdump-shadowrealm.js trying to fix the flakiness of the test. PR-URL: #50104 Refs: #49572 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
1 parent bf0f078 commit 224f3ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/pummel/test-heapdump-shadow-realm.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ let counter = 0;
1111
// snapshot can handle it.
1212
function createRealms() {
1313
// Use setImmediate to give GC some time to kick in to avoid OOM.
14-
if (counter++ < 100) {
14+
if (counter++ < 10) {
1515
realm = new ShadowRealm();
1616
realm.evaluate('undefined');
1717
setImmediate(createRealms);

0 commit comments

Comments
 (0)