summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2019-10-14 09:49:36 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2019-10-14 10:32:47 +0000
commitd9cfadeb6a433b5a67aaf8b8c5cf30a6fb9e0ffc (patch)
treedf3241866c139035c622081a8093d0b045dccf58
parent211f0bc135b08a8d9cce96b8d89b0a1c8fd24f2f (diff)
Fix session autotest for slow machines
Let the user configure the time to wait for the next JSON packet. Change-Id: I2336cdbfebb64a8fdf44c74c1d4ae7abaac4dc4e Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
-rw-r--r--tests/auto/blackbox/tst_blackbox.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/blackbox/tst_blackbox.cpp b/tests/auto/blackbox/tst_blackbox.cpp
index dd877637e..f65d462d2 100644
--- a/tests/auto/blackbox/tst_blackbox.cpp
+++ b/tests/auto/blackbox/tst_blackbox.cpp
@@ -5320,7 +5320,7 @@ static QJsonObject getNextSessionPacket(QProcess &session, QByteArray &data)
while (totalSize == -1 || msg.size() < totalSize) {
if (data.isEmpty())
session.waitForReadyRead(1000);
- if (timer.elapsed() >= 10000)
+ if (timer.elapsed() >= testTimeoutInMsecs())
return QJsonObject();
data += session.readAllStandardOutput();
if (totalSize == -1) {