diff --git a/src/libraries/System.Diagnostics.DiagnosticSource/tests/RuntimeMetricsTests.cs b/src/libraries/System.Diagnostics.DiagnosticSource/tests/RuntimeMetricsTests.cs index c1c82de1d16f7..8049d1b5e25d2 100644 --- a/src/libraries/System.Diagnostics.DiagnosticSource/tests/RuntimeMetricsTests.cs +++ b/src/libraries/System.Diagnostics.DiagnosticSource/tests/RuntimeMetricsTests.cs @@ -242,7 +242,7 @@ static void AssertExceptions(IReadOnlyList> measurements, int new object[] { "dotnet.timer.count", s_longGreaterThanOrEqualToZero, null }, }; - [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsNotBrowser))] + [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsNotMobile))] [MemberData(nameof(Measurements))] public void ValidateMeasurements(string metricName, Func? valueAssertion, Func? beforeRecord) where T : struct