Disable failing DebugServicesTests (#2710)
authorMike McLaughlin <mikem@microsoft.com>
Wed, 27 Oct 2021 18:34:32 +0000 (11:34 -0700)
committerGitHub <noreply@github.com>
Wed, 27 Oct 2021 18:34:32 +0000 (18:34 +0000)
src/tests/Microsoft.Diagnostics.DebugServices.UnitTests/DebugServicesTests.cs

index b744b86dfc6fc0f6e96ebf461426d915cd133579..dedd8c17e539ddcb854685d632c8b2566734a6ed 100644 (file)
@@ -65,6 +65,10 @@ namespace Microsoft.Diagnostics.DebugServices.UnitTests
         [SkippableTheory, MemberData(nameof(GetConfigurations))]
         public void ModuleTests(TestHost host)
         {
+            if (OS.Kind == OSKind.Windows)
+            {
+                throw new SkipTestException("Test unstable on Windows. Issue: https://github.com/dotnet/diagnostics/issues/2709");
+            }
             var moduleService = host.Target.Services.GetService<IModuleService>();
             Assert.NotNull(moduleService);
 
@@ -256,7 +260,11 @@ namespace Microsoft.Diagnostics.DebugServices.UnitTests
                     IRuntime runtime = runtimeService.EnumerateRuntimes().FirstOrDefault((r) => r.Id == id);
                     Assert.NotNull(runtime);
 
-                    runtimeData.CompareMembers(runtime);
+                    // Issue: https://github.com/dotnet/diagnostics/issues/2709
+                    if (OS.Kind != OSKind.Windows)
+                    {
+                        runtimeData.CompareMembers(runtime);
+                    }
 
                     ClrInfo clrInfo = runtime.Services.GetService<ClrInfo>();
                     Assert.NotNull(clrInfo);