Skip to content

Commit ac87618

Browse files
Remove an STJ deep nested object test causing StackOverflow failures (#120264)
Co-authored-by: Jeff Handley <jeffhandley@users.noreply.github.com>
1 parent 810a76f commit ac87618

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
@@ -335,8 +335,7 @@ public async Task VeryLargeJsonFileTest(int payloadSize, bool ignoreNull, bool w
335335
[InlineData(2, true, false)]
336336
[InlineData(2, false, false)]
337337
[InlineData(4, false, false)]
338-
[InlineData(8, false, false)]
339-
[InlineData(16, false, false)] // This results a reader\writer depth of 324 which currently works on all test platforms.
338+
[InlineData(8, false, false)] // Greater depths have caused failures on some test machine configurations due to memory constraints
340339
public async Task DeepNestedJsonFileTest(int depthFactor, bool ignoreNull, bool writeIndented)
341340
{
342341
const int ListLength = 10;

0 commit comments

Comments
 (0)