Skip to content

Commit adb3f83

Browse files
authored
Fix LatencyRoundtrips test failures (#51603)
Disable the tests for values are not guaranteed to roundtrip depending on the GC settings. We have more extensive test coverage for the latency modes under runtime tests.
1 parent 81f6bf3 commit adb3f83

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • src/libraries/System.Runtime/tests/System

src/libraries/System.Runtime/tests/System/GCTests.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,8 +422,10 @@ public static void LargeObjectHeapCompactionModeRoundTrips(GCLargeObjectHeapComp
422422
[ActiveIssue("https://github.com/dotnet/runtime/issues/31657", TestRuntimes.Mono)]
423423
[InlineData(GCLatencyMode.Batch)]
424424
[InlineData(GCLatencyMode.Interactive)]
425-
[InlineData(GCLatencyMode.LowLatency)]
426-
[InlineData(GCLatencyMode.SustainedLowLatency)]
425+
// LowLatency does not roundtrip for server GC
426+
// [InlineData(GCLatencyMode.LowLatency)]
427+
// SustainedLowLatency does not roundtrip without background GC
428+
// [InlineData(GCLatencyMode.SustainedLowLatency)]
427429
public static void LatencyRoundtrips(GCLatencyMode value)
428430
{
429431
GCLatencyMode orig = GCSettings.LatencyMode;

0 commit comments

Comments
 (0)