From 2749d491932100e64e51dff67f9958cceb9e643a Mon Sep 17 00:00:00 2001 From: Ankit Jain Date: Tue, 12 Jan 2021 15:21:32 -0500 Subject: [PATCH] [wasm] Disable `System.Diagnostics.Tests.ActivityTests.IdGenerationInternalParent` throws `System.PlatformNotSupportedException : Cannot wait on monitors on this runtime.` Partially fixes https://github.com/dotnet/runtime/issues/46768 --- .../tests/TestWithConfigSwitches/ActivityTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/System.Diagnostics.DiagnosticSource/tests/TestWithConfigSwitches/ActivityTests.cs b/src/libraries/System.Diagnostics.DiagnosticSource/tests/TestWithConfigSwitches/ActivityTests.cs index 80b7218397a8f8..cb848a9c1cb408 100644 --- a/src/libraries/System.Diagnostics.DiagnosticSource/tests/TestWithConfigSwitches/ActivityTests.cs +++ b/src/libraries/System.Diagnostics.DiagnosticSource/tests/TestWithConfigSwitches/ActivityTests.cs @@ -32,7 +32,7 @@ public void ActivityIdNonHierarchicalOverflow() Assert.DoesNotContain('#', activity.Id); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] public void IdGenerationInternalParent() { var parent = new Activity("parent");