From 81f442b38354b933cbcdc058a7629652c6e79b1b Mon Sep 17 00:00:00 2001 From: Ramez Ragaa Date: Tue, 24 Dec 2024 13:54:35 +0200 Subject: [PATCH] chore: change test timeouts --- .../Tests/Windows_UI_Xaml_Controls/Given_Frame.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_Frame.cs b/src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_Frame.cs index 44e6e10ffba9..0d2d432f2c82 100644 --- a/src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_Frame.cs +++ b/src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_Frame.cs @@ -499,10 +499,11 @@ public async Task When_Exception_In_OnNavigatedTo() #endif [DataRow(false)] [DataRow(true)] + [Timeout(5 * 60 * 1000)] // test is really slow in CI public async Task When_Navigating_NativeFrame_Pages_Get_Collected(bool backAndForth) { // to clean up residual pages from a previous test run - for (int i = 0; i < 10; i++) + for (int i = 0; i < 4; i++) { GC.Collect(GC.MaxGeneration, GCCollectionMode.Forced); GC.WaitForPendingFinalizers(); @@ -560,7 +561,7 @@ public async Task When_Navigating_NativeFrame_Pages_Get_Collected(bool backAndFo await Task.Delay(TimeSpan.FromSeconds(3)); } - for (int i = 0; i < 10; i++) + for (int i = 0; i < 4; i++) { GC.Collect(GC.MaxGeneration, GCCollectionMode.Forced); GC.WaitForPendingFinalizers();