From 0e64cadb98e8b983abb6f7148e65d911608fcae8 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Mon, 16 Sep 2024 21:52:12 +0100 Subject: [PATCH] tests: Fix flaky reconnect test testMultiScreen explicitly sets clients on monitors, for this to work we need autoEnter disabled. 92952bd04a0452a45140ed9c9494279683bb80e1 set this on startup, but due to the way we reset the compositor this needs doing multiple times if multiple tests are run. Change-Id: Iaad3058b3ad8a12d01b3bd8272615fcd74ea250d Reviewed-by: David Redondo --- tests/auto/wayland/reconnect/tst_reconnect.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/auto/wayland/reconnect/tst_reconnect.cpp b/tests/auto/wayland/reconnect/tst_reconnect.cpp index c45d63542b9..22892494157 100644 --- a/tests/auto/wayland/reconnect/tst_reconnect.cpp +++ b/tests/auto/wayland/reconnect/tst_reconnect.cpp @@ -128,6 +128,8 @@ void tst_WaylandReconnect::triggerReconnect() { const int socketFd = wl_socket_get_fd(m_socket); m_comp.reset(new DefaultCompositor(CoreCompositor::Default, dup(socketFd))); + m_comp->m_config.autoEnter = false; + QTest::qWait(50); //we need to spin the main loop to actually reconnect }