From d9cfadeb6a433b5a67aaf8b8c5cf30a6fb9e0ffc Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Mon, 14 Oct 2019 09:49:36 +0200 Subject: 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 --- tests/auto/blackbox/tst_blackbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3