Skip to content

Commit

Permalink
chore: change test timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
ramezgerges committed Dec 24, 2024
1 parent ee6b960 commit 81f442b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 81f442b

Please sign in to comment.