Fix recursion depth test validity

Previosly a failure to correctly limit the depth might not be detected
This commit is contained in:
Lentil Hoffman 2025-06-15 12:22:39 -05:00
parent 885630f4d9
commit dd8987563a
Signed by: lentil
GPG Key ID: 0F5B99F3F4D0C087

View File

@ -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);