From 1c3610413d9294f9ce7a25ecf919d200ed0d4397 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Wed, 11 Jan 2023 23:47:47 +0200 Subject: [PATCH] autotests: Make testPlasmaWindow quicker Before Executed in 10.79 secs fish external usr time 4.85 secs 918.00 micros 4.85 secs sys time 0.62 secs 119.00 micros 0.62 secs After Executed in 1.45 secs fish external usr time 941.63 millis 486.00 micros 941.14 millis sys time 578.99 millis 62.00 micros 578.93 millis --- autotests/integration/plasmawindow_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autotests/integration/plasmawindow_test.cpp b/autotests/integration/plasmawindow_test.cpp index 087646743c..72e0c246a5 100644 --- a/autotests/integration/plasmawindow_test.cpp +++ b/autotests/integration/plasmawindow_test.cpp @@ -207,7 +207,7 @@ void PlasmaWindowTest::testInternalWindowNoPlasmaWindow() win.setGeometry(0, 0, 100, 100); win.show(); - QVERIFY(!plasmaWindowCreatedSpy.wait()); + QVERIFY(!plasmaWindowCreatedSpy.wait(100)); } void PlasmaWindowTest::testPopupWindowNoPlasmaWindow() @@ -257,7 +257,7 @@ void PlasmaWindowTest::testLockScreenNoPlasmaWindow() QVERIFY(windowAddedSpy.first().first().value()->isLockScreen()); // should not be sent to the window QVERIFY(plasmaWindowCreatedSpy.isEmpty()); - QVERIFY(!plasmaWindowCreatedSpy.wait()); + QVERIFY(!plasmaWindowCreatedSpy.wait(100)); // fake unlock QSignalSpy lockStateChangedSpy(ScreenLocker::KSldApp::self(), &ScreenLocker::KSldApp::lockStateChanged);