Fix recursion depth test validity
Previosly a failure to correctly limit the depth might not be detected
This commit is contained in:
parent
885630f4d9
commit
dd8987563a
@ -251,7 +251,7 @@ describe('Nested Object Resolution Performance', () => {
|
||||
while (currentView.nestedObjects.next && currentView.nestedObjects.next.length > 0) {
|
||||
currentView = currentView.nestedObjects.next[0];
|
||||
depth++;
|
||||
if (depth >= 5) break; // Prevent infinite loop
|
||||
if (depth >= 10) break; // Prevent infinite loop
|
||||
}
|
||||
|
||||
expect(depth).toBeLessThanOrEqual(5);
|
||||
|
Loading…
x
Reference in New Issue
Block a user