diff --git a/autotests/integration/shell_client_test.cpp b/autotests/integration/shell_client_test.cpp --- a/autotests/integration/shell_client_test.cpp +++ b/autotests/integration/shell_client_test.cpp @@ -986,7 +986,9 @@ QVERIFY(process->waitForStarted()); AbstractClient *killClient = nullptr; - QVERIFY(shellClientAddedSpy.wait()); + if (shellClientAddedSpy.isEmpty()) { + QVERIFY(shellClientAddedSpy.wait()); + } killClient = shellClientAddedSpy.first().first().value(); QSignalSpy unresponsiveSpy(killClient, &AbstractClient::unresponsiveChanged); QSignalSpy killedSpy(process.data(), static_cast(&QProcess::finished));