autotests: Make testXdgShellClientRules more robust to CI being heavily loaded

FAIL!  : TestXdgShellClientRules::testSizeApply() 'surfaceConfigureRequestedSpy->wait(10)' returned FALSE. ()
   Loc: [/home/jenkins/workspace/Plasma/kwin/kf5-qt5 SUSEQt5.15/autotests/integration/xdgshellclient_rules_test.cpp(731)]

If CI is moderately loaded, 10ms may not be enough. I don't remember why
10ms timeout was added.
This commit is contained in:
Vlad Zahorodnii 2021-10-07 22:40:35 +03:00
parent dee97068fb
commit bc8c7a5fce

View file

@ -728,7 +728,7 @@ void TestXdgShellClientRules::testSizeApply()
QVERIFY(!client->isInteractiveMove());
QVERIFY(!client->isInteractiveResize());
QVERIFY(surfaceConfigureRequestedSpy->wait(10));
QVERIFY(surfaceConfigureRequestedSpy->wait());
QCOMPARE(surfaceConfigureRequestedSpy->count(), 5);
QCOMPARE(toplevelConfigureRequestedSpy->count(), 5);
@ -868,7 +868,7 @@ void TestXdgShellClientRules::testSizeRemember()
QVERIFY(!client->isInteractiveMove());
QVERIFY(!client->isInteractiveResize());
QVERIFY(surfaceConfigureRequestedSpy->wait(10));
QVERIFY(surfaceConfigureRequestedSpy->wait());
QCOMPARE(surfaceConfigureRequestedSpy->count(), 5);
QCOMPARE(toplevelConfigureRequestedSpy->count(), 5);