From 268b2b98e0c30b162d64633654ad5e19bfa67a27 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 1 Jan 2024 22:04:41 +0100 Subject: [PATCH] Use WaitForEventAt() in Grid::ReorderedColumnsCellClick test too This test also sporadically fails on AppVeyor. --- tests/controls/gridtest.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/controls/gridtest.cpp b/tests/controls/gridtest.cpp index 97557eb5bc..a77f2ad39d 100644 --- a/tests/controls/gridtest.cpp +++ b/tests/controls/gridtest.cpp @@ -534,8 +534,10 @@ TEST_CASE_METHOD(GridTestCase, "Grid::ReorderedColumnsCellClick", "[grid]") wxYield(); sim.MouseClick(); - wxYield(); - + if ( !WaitForEventAt(point, "mouse click to be processed", [&]() { + return click.GetCount() != 0; + }) ) + return; CHECK(click.GetCount() == 1); #endif }