diff --git a/src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Utf8JsonWriterTests.cs b/src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Utf8JsonWriterTests.cs index 0707327d171d4e..8d716b3ba089c0 100644 --- a/src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Utf8JsonWriterTests.cs +++ b/src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Utf8JsonWriterTests.cs @@ -8067,7 +8067,8 @@ from inputValue in others from anotherValue in anothers select new object[] { options, inputValue, anotherValue }; - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.Is64BitProcess))] + [OuterLoop] public static void WritePropertyWithExtremelyLongName_ThrowsArgumentException() { var output = new ArrayBufferWriter(); @@ -8080,7 +8081,8 @@ public static void WritePropertyWithExtremelyLongName_ThrowsArgumentException() Assert.Throws(() => writer.WritePropertyName(longName.AsSpan())); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.Is64BitProcess))] + [OuterLoop] public static void WriteValueWithExtremelyLongValue_ThrowsArgumentException() { var output = new ArrayBufferWriter();