Skip to content

Commit 63c6279

Browse files
authored
Increment nested depth in TooDeepJsonDocument test by 10x (#105836)
* Increment nested depth in TooDeepJsonDocument test by 10x * Disable test on mono interpreter
1 parent 8a5f842 commit 63c6279

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Serialization/JsonElementTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,15 +229,15 @@ public static void DeepEquals_DeepJsonDocument(int depth)
229229
Assert.True(JsonElement.DeepEquals(element, element));
230230
}
231231

232-
[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))]
232+
[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported), nameof(PlatformDetection.IsNotMonoInterpreter))]
233233
public static async Task DeepEquals_TooDeepJsonDocument_ThrowsInsufficientExecutionStackException()
234234
{
235235
var tcs = new TaskCompletionSource<bool>();
236236
new Thread(() =>
237237
{
238238
try
239239
{
240-
using JsonDocument jDoc = CreateDeepJsonDocument(10_000);
240+
using JsonDocument jDoc = CreateDeepJsonDocument(100_000);
241241
JsonElement element = jDoc.RootElement;
242242
Assert.Throws<InsufficientExecutionStackException>(() => JsonElement.DeepEquals(element, element));
243243
tcs.SetResult(true);

0 commit comments

Comments
 (0)