Skip to content

Commit e444f42

Browse files
committed
fix device test
1 parent 451d2cf commit e444f42

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/Controls/tests/DeviceTests/Elements/FlyoutPage/FlyoutPageTests.cs

+3-7
Original file line numberDiff line numberDiff line change
@@ -273,17 +273,13 @@ await CreateHandlerAndAddToWindow<WindowHandlerStub>(window, async handler =>
273273
Detail = new ContentPage { Title = "Detail" }
274274
};
275275

276-
flyoutPage.Appearing += async (_, __) =>
277-
{
278-
await Task.Delay(100);
279-
await flyoutPage.Navigation.PopModalAsync();
280-
};
276+
await launcherPage.Navigation.PushModalAsync(flyoutPage, true);
281277

282278
references.Add(new WeakReference(flyoutPage));
283279
references.Add(new WeakReference(flyoutPage.Flyout));
284280
references.Add(new WeakReference(flyoutPage.Detail));
285-
await launcherPage.Navigation.PushModalAsync(flyoutPage, true);
286-
await OnUnloadedAsync(flyoutPage);
281+
282+
await launcherPage.Navigation.PopModalAsync();
287283
});
288284

289285
await AssertionExtensions.WaitForGC(references.ToArray());

0 commit comments

Comments
 (0)