summaryrefslogtreecommitdiffstats
path: root/tests/auto/networkselftest
diff options
context:
space:
mode:
authorMarkus Goetz <Markus.Goetz@nokia.com>2009-11-25 09:30:52 (GMT)
committerMarkus Goetz <Markus.Goetz@nokia.com>2009-11-25 09:30:52 (GMT)
commit6cb0ac70301a21e914cb5716642c756312b3ec30 (patch)
treef80cd9c64da9226d4199851b5719b1d386a4628a /tests/auto/networkselftest
parent426e3daa9ebca56650607189ce77aa98545805aa (diff)
downloadQt-6cb0ac70301a21e914cb5716642c756312b3ec30.zip
Qt-6cb0ac70301a21e914cb5716642c756312b3ec30.tar.gz
Qt-6cb0ac70301a21e914cb5716642c756312b3ec30.tar.bz2
Network auto tests: Some timeout increases
Reviewed-by: TrustMe
Diffstat (limited to 'tests/auto/networkselftest')
-rw-r--r--tests/auto/networkselftest/tst_networkselftest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/networkselftest/tst_networkselftest.cpp b/tests/auto/networkselftest/tst_networkselftest.cpp
index f13bcad..b9be5cb 100644
--- a/tests/auto/networkselftest/tst_networkselftest.cpp
+++ b/tests/auto/networkselftest/tst_networkselftest.cpp
@@ -156,7 +156,7 @@ static QString prettyByteArray(const QByteArray &array)
return result;
}
-static bool doSocketRead(QTcpSocket *socket, int minBytesAvailable, int timeout = 2000)
+static bool doSocketRead(QTcpSocket *socket, int minBytesAvailable, int timeout = 4000)
{
QTime timer;
timer.start();
@@ -171,7 +171,7 @@ static bool doSocketRead(QTcpSocket *socket, int minBytesAvailable, int timeout
}
}
-static bool doSocketFlush(QTcpSocket *socket, int timeout = 2000)
+static bool doSocketFlush(QTcpSocket *socket, int timeout = 4000)
{
#ifndef QT_NO_OPENSSL
QSslSocket *sslSocket = qobject_cast<QSslSocket *>(socket);