summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2019-05-14 03:00:12 +0200
committerQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2019-05-14 03:00:12 +0200
commitba171e01f90e9399ca4bfab0204b2932380ad64f (patch)
treea74f3fa30d114ea064cbfc618846e387e7996237 /tests
parenta8a3088f1fcd7ff00e7748040473c27c4bea8dad (diff)
parente520e4fd777350673d5022982481f82672fea6ff (diff)
Merge remote-tracking branch 'origin/5.12' into 5.13
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/proxy_multiprocess/client/main.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/auto/proxy_multiprocess/client/main.cpp b/tests/auto/proxy_multiprocess/client/main.cpp
index 4874fb1..f37821f 100644
--- a/tests/auto/proxy_multiprocess/client/main.cpp
+++ b/tests/auto/proxy_multiprocess/client/main.cpp
@@ -72,6 +72,8 @@ private Q_SLOTS:
qDebug() << "Verified expected initial states, sending start.";
auto reply = m_rep->start();
QVERIFY(reply.waitForFinished());
+ QVERIFY(reply.error() == QRemoteObjectPendingCall::NoError);
+ QCOMPARE(reply.returnValue(), QVariant::fromValue(true));
QSignalSpy advanceSpy(m_rep.data(), SIGNAL(advance()));
QVERIFY(advanceSpy.wait());
@@ -87,7 +89,10 @@ private Q_SLOTS:
void cleanupTestCase()
{
auto reply = m_rep->quit();
- QVERIFY(reply.waitForFinished());
+ // Don't verify the wait result, depending on the timing of the server and proxy
+ // closing it may return false. We just need this process to stay alive long
+ // enough for the packets to be sent.
+ reply.waitForFinished(5000);
}
private: