Skip to content

Commit 6d5871b

Browse files
committed
[tests] Enable back some MemoryLeak tests
# Conflicts: # src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla42329.cs
1 parent ea7078d commit 6d5871b

File tree

5 files changed

+2
-14
lines changed

5 files changed

+2
-14
lines changed

src/Controls/tests/DeviceTests/Elements/NavigationPage/NavigationPageTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,8 @@ await CreateHandlerAndAddToWindow<WindowHandlerStub>(new Window(navPage), async
352352
}
353353

354354
[Fact(DisplayName = "Does Not Leak"
355-
#if WINDOWS || ANDROID
356-
, Skip = "Failing https://github.com/dotnet/maui/issues/27411"
355+
#if WINDOWS
356+
, Skip = "Failing"
357357
#endif
358358
)]
359359
public async Task DoesNotLeak()

src/Controls/tests/DeviceTests/Memory/MemoryTests.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,7 @@ void SetupBuilder()
9999

100100
[Theory("Pages Do Not Leak")]
101101
[InlineData(typeof(ContentPage))]
102-
#if !ANDROID
103102
[InlineData(typeof(NavigationPage))]
104-
//https://github.com/dotnet/maui/issues/27411
105-
#endif
106103
[InlineData(typeof(TabbedPage))]
107104
public async Task PagesDoNotLeak([DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicParameterlessConstructor)] Type type)
108105
{

src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla40955.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ public Bugzilla40955(TestDevice testDevice) : base(testDevice)
2323
public override string Issue => "Memory leak with FormsAppCompatActivity and NavigationPage";
2424

2525
[Test]
26-
#if ANDROID
27-
[Ignore("Failing on net10 https://github.com/dotnet/maui/issues/27411")]
28-
#endif
2926
[Category(UITestCategories.Performance)]
3027
public void MemoryLeakInFormsAppCompatActivity()
3128
{

src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla42329.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ public Bugzilla42329(TestDevice testDevice) : base(testDevice)
1919
public override string Issue => "ListView in Frame and FormsAppCompatActivity Memory Leak";
2020

2121
[Test]
22-
#if ANDROID
23-
[Ignore("Failing on net10 https://github.com/dotnet/maui/issues/27411")]
24-
#endif
2522
[Category(UITestCategories.ListView)]
2623
public async Task MemoryLeakB42329()
2724
{

src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla44166.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ public Bugzilla44166(TestDevice testDevice) : base(testDevice)
1414
public override string Issue => "FlyoutPage instances do not get disposed upon GC";
1515

1616
[Test]
17-
#if ANDROID
18-
[Ignore("Failing on net10 https://github.com/dotnet/maui/issues/27411")]
19-
#endif
2017
[Category(UITestCategories.Performance)]
2118
public void Bugzilla44166Test()
2219
{

0 commit comments

Comments
 (0)