Skip to content

Commit 6384dc8

Browse files
Remove an STJ deep nested object test causing StackOverflow failures (#120266)
Co-authored-by: Jeff Handley <jeffhandley@users.noreply.github.com>
1 parent 3107bc7 commit 6384dc8

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
@@ -330,8 +330,7 @@ public async Task VeryLargeJsonFileTest(int payloadSize, bool ignoreNull, bool w
330330
[InlineData(2, true, false)]
331331
[InlineData(2, false, false)]
332332
[InlineData(4, false, false)]
333-
[InlineData(8, false, false)]
334-
[InlineData(16, false, false)] // This results a reader\writer depth of 324 which currently works on all test platforms.
333+
[InlineData(8, false, false)] // Greater depths have caused failures on some test machine configurations due to memory constraints
335334
public async Task DeepNestedJsonFileTest(int depthFactor, bool ignoreNull, bool writeIndented)
336335
{
337336
const int ListLength = 10;

0 commit comments

Comments
 (0)