[autotests/integration] Try to fix InternalWindowTest::testKeyboard

It fails on build.kde.org, but failing condition is not reproducable
locally.
This commit is contained in:
Martin Gräßlin 2016-08-16 11:10:26 +02:00
parent 06d562a5ba
commit 0eecb202e2

View file

@ -342,6 +342,9 @@ void InternalWindowTest::testKeyboard()
QSignalSpy windowShownSpy(internalClient, &ShellClient::windowShown); QSignalSpy windowShownSpy(internalClient, &ShellClient::windowShown);
QVERIFY(windowShownSpy.isValid()); QVERIFY(windowShownSpy.isValid());
win.show(); win.show();
if (windowShownSpy.isEmpty()) {
QVERIFY(windowShownSpy.wait());
}
QCOMPARE(windowShownSpy.count(), 1); QCOMPARE(windowShownSpy.count(), 1);
QVERIFY(leftSpy.isEmpty()); QVERIFY(leftSpy.isEmpty());
QVERIFY(!leftSpy.wait(100)); QVERIFY(!leftSpy.wait(100));