From bc8c7a5fceac289cb5bd4a3fd4b3eaca9903b36f Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 7 Oct 2021 22:40:35 +0300 Subject: [PATCH] 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. --- autotests/integration/xdgshellclient_rules_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autotests/integration/xdgshellclient_rules_test.cpp b/autotests/integration/xdgshellclient_rules_test.cpp index bd812897c6..38f1c398d8 100644 --- a/autotests/integration/xdgshellclient_rules_test.cpp +++ b/autotests/integration/xdgshellclient_rules_test.cpp @@ -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);