Skip to content

Commit 8b661d6

Browse files
Remove an STJ deep nested object test causing StackOverflow failures (#120265)
Co-authored-by: Jeff Handley <[email protected]>
1 parent 4def3e8 commit 8b661d6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Serialization/Stream.WriteTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,7 @@ public async Task VeryLargeJsonFileTest(int payloadSize, bool ignoreNull, bool w
338338
[InlineData(2, true, false)]
339339
[InlineData(2, false, false)]
340340
[InlineData(4, false, false)]
341-
[InlineData(8, false, false)]
342-
[InlineData(16, false, false)] // This results a reader\writer depth of 324 which currently works on all test platforms.
341+
[InlineData(8, false, false)] // Greater depths have caused failures on some test machine configurations due to memory constraints
343342
public async Task DeepNestedJsonFileTest(int depthFactor, bool ignoreNull, bool writeIndented)
344343
{
345344
const int ListLength = 10;

0 commit comments

Comments
 (0)