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 }