From 6848a9e20bf95bb69a1738094fdee461d4a760d0 Mon Sep 17 00:00:00 2001 From: wakonig_k Date: Sun, 15 Mar 2026 12:30:40 +0100 Subject: [PATCH] test(e2e): avoid timing issues in rpc_gui_obj test --- tests/end-2-end/test_bec_dock_rpc_e2e.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/end-2-end/test_bec_dock_rpc_e2e.py b/tests/end-2-end/test_bec_dock_rpc_e2e.py index 300605b5..77d225ba 100644 --- a/tests/end-2-end/test_bec_dock_rpc_e2e.py +++ b/tests/end-2-end/test_bec_dock_rpc_e2e.py @@ -150,7 +150,9 @@ def test_rpc_gui_obj(connected_client_gui_obj, qtbot): # communication should work, main dock area should have same id and be visible yw = gui.new("Y") + qtbot.waitUntil(lambda: len(gui.windows) == 2, timeout=3000) yw.delete_all() assert len(gui.windows) == 2 yw.remove() - assert len(gui.windows) == 1 # only bec is left + qtbot.waitUntil(lambda: len(gui.windows) == 1, timeout=3000) + assert len(gui.windows) == 1