From 0eecb202e2cca271621487fcb7424aa831dcb15d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Tue, 16 Aug 2016 11:10:26 +0200 Subject: [PATCH] [autotests/integration] Try to fix InternalWindowTest::testKeyboard It fails on build.kde.org, but failing condition is not reproducable locally. --- autotests/integration/internal_window.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autotests/integration/internal_window.cpp b/autotests/integration/internal_window.cpp index ee611af600..571c8b2ed7 100644 --- a/autotests/integration/internal_window.cpp +++ b/autotests/integration/internal_window.cpp @@ -342,6 +342,9 @@ void InternalWindowTest::testKeyboard() QSignalSpy windowShownSpy(internalClient, &ShellClient::windowShown); QVERIFY(windowShownSpy.isValid()); win.show(); + if (windowShownSpy.isEmpty()) { + QVERIFY(windowShownSpy.wait()); + } QCOMPARE(windowShownSpy.count(), 1); QVERIFY(leftSpy.isEmpty()); QVERIFY(!leftSpy.wait(100));