File tree 1 file changed +5
-2
lines changed
firebase-firestore/src/test/java/com/google/firebase/firestore/local 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -334,6 +334,9 @@ public void testDeeplyNestedServerTimestamps() {
334
334
add (fieldTransform );
335
335
}
336
336
};
337
+ // The purpose of this test is to ensure that deeply nested server timestamps do not result in
338
+ // a stack overflow error. Below we use a `Thread` object to create a large number of mutations
339
+ // because the `Thread` class allows us to specify the maximum stack size.
337
340
AtomicReference <Throwable > error = new AtomicReference <>();
338
341
Thread thread =
339
342
new Thread (
@@ -353,8 +356,8 @@ public void testDeeplyNestedServerTimestamps() {
353
356
error .set (e );
354
357
}
355
358
},
356
- "test" ,
357
- 1024 * 1024 );
359
+ /* name */ "test" ,
360
+ /* stackSize */ 1024 * 1024 );
358
361
try {
359
362
thread .start ();
360
363
thread .join ();
You can’t perform that action at this time.
0 commit comments