From 1709f7384337bbe92927f517961a7e77573ccf81 Mon Sep 17 00:00:00 2001 From: Max Katz Date: Sat, 26 Oct 2024 19:50:38 -0700 Subject: [PATCH] Avoid test failing on 11.2, should not hardcode callbackExecuted ideally --- tests/Avalonia.Controls.UnitTests/Primitives/PopupTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Avalonia.Controls.UnitTests/Primitives/PopupTests.cs b/tests/Avalonia.Controls.UnitTests/Primitives/PopupTests.cs index bf67af01975..e01a438221e 100644 --- a/tests/Avalonia.Controls.UnitTests/Primitives/PopupTests.cs +++ b/tests/Avalonia.Controls.UnitTests/Primitives/PopupTests.cs @@ -1239,7 +1239,7 @@ public void Custom_Placement_Callback_Is_Executed() // Ideally, callback should be executed only once for this test. // But currently PlacementTargetLayoutUpdated triggers second update either way. - Assert.Equal(2, callbackExecuted); + Assert.True(callbackExecuted >= 1); } }