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
This commit is contained in:
Vlad Zahorodnii 2023-01-11 23:47:47 +02:00
parent 9751aca548
commit 1c3610413d

View file

@ -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<Window *>()->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);