From 9155b2ecb45d297ffaa00d069e9d95bf95da537a Mon Sep 17 00:00:00 2001 From: Audun Sutterud Date: Thu, 27 Feb 2025 13:19:38 +0000 Subject: [PATCH] tests: Wait for output in tst_reconnect The test must wait for the output to have a client before placing a surface on it. If it fails to do so, flakiness may occur. Task-number: QTBUG-132699 Change-Id: I272742d3bee7ae1fe61b8df629aba2947785fc6c Reviewed-by: David Redondo --- tests/auto/wayland/reconnect/tst_reconnect.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/auto/wayland/reconnect/tst_reconnect.cpp b/tests/auto/wayland/reconnect/tst_reconnect.cpp index 22892494157..e32784ba0a3 100644 --- a/tests/auto/wayland/reconnect/tst_reconnect.cpp +++ b/tests/auto/wayland/reconnect/tst_reconnect.cpp @@ -158,6 +158,7 @@ void tst_WaylandReconnect::multipleScreens() window2.show(); QCOMPOSITOR_TRY_VERIFY(m_comp->xdgToplevel(0)); QCOMPOSITOR_TRY_VERIFY(m_comp->xdgToplevel(1)); + QCOMPOSITOR_TRY_VERIFY(!m_comp->output(1)->resourceMap().isEmpty()); // ensure they are on different outputs exec([this] {