Skip to content

Commit

Permalink
Move timing out tests to Outerloop (dotnet#101556)
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriktsarpalis authored and michaelgsharp committed May 8, 2024
1 parent dcac69f commit c647126
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3069,10 +3069,9 @@ public void WritingHugeBase64Bytes(JsonWriterOptions options)
}

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

[Theory]
[MemberData(nameof(JsonOptions_TestData))]
[OuterLoop("Too slow", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser))]
[OuterLoop("Too slow", typeof(PlatformDetection), nameof(PlatformDetection.IsMonoRuntime))]
public void EscapeCharacters(JsonWriterOptions options)
{
// Do not include surrogate pairs.
Expand Down Expand Up @@ -5305,7 +5304,7 @@ public void WriteDoubleValue(JsonWriterOptions options, double value)
[Theory]
[SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework)]
[MemberData(nameof(WriteValue_TestData))]
[OuterLoop("Too slow", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser))]
[OuterLoop("Too slow", typeof(PlatformDetection), nameof(PlatformDetection.IsMonoRuntime))]
public void WriteNumbers(JsonWriterOptions options, string keyString)
{
var random = new Random(42);
Expand Down

0 comments on commit c647126

Please sign in to comment.