diff --git a/src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Serialization/JsonElementTests.cs b/src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Serialization/JsonElementTests.cs index b1517a9187de91..6e849c6c0c84c6 100644 --- a/src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Serialization/JsonElementTests.cs +++ b/src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Serialization/JsonElementTests.cs @@ -229,7 +229,7 @@ public static void DeepEquals_DeepJsonDocument(int depth) Assert.True(JsonElement.DeepEquals(element, element)); } - [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported), nameof(PlatformDetection.IsNotMonoInterpreter))] public static async Task DeepEquals_TooDeepJsonDocument_ThrowsInsufficientExecutionStackException() { var tcs = new TaskCompletionSource(); @@ -237,7 +237,7 @@ public static async Task DeepEquals_TooDeepJsonDocument_ThrowsInsufficientExecut { try { - using JsonDocument jDoc = CreateDeepJsonDocument(10_000); + using JsonDocument jDoc = CreateDeepJsonDocument(100_000); JsonElement element = jDoc.RootElement; Assert.Throws(() => JsonElement.DeepEquals(element, element)); tcs.SetResult(true);