@@ -75,7 +75,7 @@ private slots:
7575 void quit_exits ();
7676
7777private:
78- void runEventLoopVerifySignalsEmitted (QSignalSpy& actionSpy, bool waitForQuit = true );
78+ void runEventLoopVerifySignalsEmitted (QSignalSpy& actionSpy);
7979 void initGetCert ();
8080 void initAuthenticate ();
8181 void initCard (bool withSigningScript = true );
@@ -101,7 +101,7 @@ void WebEidTests::statusUpdate_withUnsupportedCard_hasExpectedStatus()
101101 QSignalSpy statusUpdateSpy (controller.get (), &Controller::statusUpdate);
102102
103103 // act
104- runEventLoopVerifySignalsEmitted (statusUpdateSpy, false );
104+ runEventLoopVerifySignalsEmitted (statusUpdateSpy);
105105
106106 // assert
107107 const auto statusArgument = qvariant_cast<RetriableError>(statusUpdateSpy.first ().at (0 ));
@@ -220,7 +220,7 @@ void WebEidTests::quit_exits()
220220 }
221221}
222222
223- void WebEidTests::runEventLoopVerifySignalsEmitted (QSignalSpy& actionSpy, bool waitForQuit )
223+ void WebEidTests::runEventLoopVerifySignalsEmitted (QSignalSpy& actionSpy)
224224{
225225 // Waits until Controller emits quit.
226226 QSignalSpy quitSpy (controller.get (), &Controller::quit);
@@ -230,7 +230,7 @@ void WebEidTests::runEventLoopVerifySignalsEmitted(QSignalSpy& actionSpy, bool w
230230
231231 // Run the event loop, verify that signals were emitted.
232232 QVERIFY (actionSpy.wait ());
233- if (waitForQuit && quitSpy.count () < 1 ) {
233+ if (quitSpy.count () < 1 ) {
234234 QVERIFY (quitSpy.wait ());
235235 }
236236}
0 commit comments