From 9151f0b990632de135ad451c90311dc9c9fb937b Mon Sep 17 00:00:00 2001 From: michael-hawker <24302614+michael-hawker@users.noreply.github.com> Date: Tue, 15 Aug 2023 14:18:42 -0700 Subject: [PATCH] Try Ignoring tests that regularly fail more often (though still think it's just random based on number of tests run...) Need to comment out as Ignore ignored... see https://github.com/CommunityToolkit/Tooling-Windows-Submodule/issues/121 Related to investigation, see info in https://github.com/actions/runner-images/issues/7937 --- .../Extensions/tests/DispatcherQueueExtensionTests.cs | 3 ++- .../FrameworkElementExtensionsTests.RelativeAncestor.cs | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/components/Extensions/tests/DispatcherQueueExtensionTests.cs b/components/Extensions/tests/DispatcherQueueExtensionTests.cs index b1b6d251..bd3370e5 100644 --- a/components/Extensions/tests/DispatcherQueueExtensionTests.cs +++ b/components/Extensions/tests/DispatcherQueueExtensionTests.cs @@ -336,8 +336,9 @@ await DispatcherQueue.GetForCurrentThread().EnqueueAsync(async () => Assert.IsNull(taskSource.Task.Exception); } + [Ignore] [TestCategory("DispatcherQueueExtensions")] - [UIThreadTestMethod] + ////[UIThreadTestMethod] - TODO: https://github.com/CommunityToolkit/Tooling-Windows-Submodule/issues/121 public async Task DispatcherQueueHelper_FuncOfTaskOfT_Exception() { var task = DispatcherQueue.GetForCurrentThread().EnqueueAsync(new Func>(() => diff --git a/components/Extensions/tests/Element/FrameworkElementExtensionsTests.RelativeAncestor.cs b/components/Extensions/tests/Element/FrameworkElementExtensionsTests.RelativeAncestor.cs index fab4af3d..a2a7f431 100644 --- a/components/Extensions/tests/Element/FrameworkElementExtensionsTests.RelativeAncestor.cs +++ b/components/Extensions/tests/Element/FrameworkElementExtensionsTests.RelativeAncestor.cs @@ -59,8 +59,9 @@ public async Task FrameworkElementExtension_RelativeAncestor_FreeParentBaseline( Assert.IsFalse(textRef.IsAlive, "TextBox is still alive..."); } + [Ignore] [TestCategory("FrameworkElementExtension")] - [UIThreadTestMethod] + ////[UIThreadTestMethod] - TODO: https://github.com/CommunityToolkit/Tooling-Windows-Submodule/issues/121 public async Task FrameworkElementExtension_RelativeAncestor_FreeParent(FrameworkElementRelativeAncestorDataTemplateTestPage page) { var list = page.FindDescendant(); @@ -85,9 +86,9 @@ public async Task FrameworkElementExtension_RelativeAncestor_FreeParent(Framewor Assert.IsFalse(listRef.IsAlive, "ListView is still alive..."); } - [TestCategory("FrameworkElementExtension")] - [UIThreadTestMethod] [Ignore] + [TestCategory("FrameworkElementExtension")] + ////[UIThreadTestMethod] - TODO: https://github.com/CommunityToolkit/Tooling-Windows-Submodule/issues/121 public async Task FrameworkElementExtension_RelativeAncestor_FreePageNavigation() { TaskCompletionSource taskCompletionSource = new();