Skip to content

Commit e7ddbbb

Browse files
Move timing out tests to Outerloop (dotnet#101556)
1 parent 5c01ed2 commit e7ddbbb

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Utf8JsonWriterTests.cs

+3-4
Original file line numberDiff line numberDiff line change
@@ -3069,10 +3069,9 @@ public void WritingHugeBase64Bytes(JsonWriterOptions options)
30693069
}
30703070

30713071
// https://github.com/dotnet/runtime/issues/30746
3072-
[Theory]
3072+
[Theory, OuterLoop("Very long running test")]
30733073
[MemberData(nameof(JsonOptions_TestData))]
30743074
[SkipOnCoreClr("https://github.com/dotnet/runtime/issues/45464", ~RuntimeConfiguration.Release)]
3075-
[OuterLoop("Too slow", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser))]
30763075
public void Writing3MBBase64Bytes(JsonWriterOptions options)
30773076
{
30783077
byte[] value = new byte[3 * 1024 * 1024];
@@ -4422,7 +4421,7 @@ public void EscapeAsciiCharacters(JsonWriterOptions options)
44224421

44234422
[Theory]
44244423
[MemberData(nameof(JsonOptions_TestData))]
4425-
[OuterLoop("Too slow", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser))]
4424+
[OuterLoop("Too slow", typeof(PlatformDetection), nameof(PlatformDetection.IsMonoRuntime))]
44264425
public void EscapeCharacters(JsonWriterOptions options)
44274426
{
44284427
// Do not include surrogate pairs.
@@ -5305,7 +5304,7 @@ public void WriteDoubleValue(JsonWriterOptions options, double value)
53055304
[Theory]
53065305
[SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework)]
53075306
[MemberData(nameof(WriteValue_TestData))]
5308-
[OuterLoop("Too slow", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser))]
5307+
[OuterLoop("Too slow", typeof(PlatformDetection), nameof(PlatformDetection.IsMonoRuntime))]
53095308
public void WriteNumbers(JsonWriterOptions options, string keyString)
53105309
{
53115310
var random = new Random(42);

0 commit comments

Comments
 (0)