summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRohan McGovern <rohan.mcgovern@nokia.com>2011-08-01 23:24:25 (GMT)
committerQt by Nokia <qt-info@nokia.com>2012-02-07 16:23:12 (GMT)
commitb0d5bf719298e1b99deed493ac6a9ee4dd689e22 (patch)
treee5d3b239a79b4b06eea538a51310d7246e6951a0 /tests
parentd7c7bf721c93fe7629f725c181b52ad9ca645a7a (diff)
downloadQt-b0d5bf719298e1b99deed493ac6a9ee4dd689e22.zip
Qt-b0d5bf719298e1b99deed493ac6a9ee4dd689e22.tar.gz
Qt-b0d5bf719298e1b99deed493ac6a9ee4dd689e22.tar.bz2
test: improved stability of tst_qiodevice on slow machines
Increased network timeout from 5 to 30 seconds. Change-Id: I4751dbfbb82c2091f1cec26150f06f913ffbe4c0 Reviewed-on: http://codereview.qt.nokia.com/2456 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Kalle Lehtonen <kalle.ju.lehtonen@nokia.com> (cherry picked from commit 493634a71190679666082687626c05047b5cd463) Reviewed-by: Pasi Pentikäinen <ext-pasi.a.pentikainen@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qiodevice/tst_qiodevice.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/qiodevice/tst_qiodevice.cpp b/tests/auto/qiodevice/tst_qiodevice.cpp
index 00de65e..62b21cd 100644
--- a/tests/auto/qiodevice/tst_qiodevice.cpp
+++ b/tests/auto/qiodevice/tst_qiodevice.cpp
@@ -131,11 +131,11 @@ void tst_QIODevice::constructing_QTcpSocket()
QVERIFY(!device->isOpen());
socket.connectToHost(QtNetworkSettings::serverName(), 143);
- QVERIFY(socket.waitForConnected(5000));
+ QVERIFY(socket.waitForConnected(30000));
QVERIFY(device->isOpen());
while (!device->canReadLine())
- QVERIFY(device->waitForReadyRead(5000));
+ QVERIFY(device->waitForReadyRead(30000));
char buf[1024];
memset(buf, 0, sizeof(buf));
@@ -145,11 +145,11 @@ void tst_QIODevice::constructing_QTcpSocket()
socket.close();
socket.connectToHost(QtNetworkSettings::serverName(), 143);
- QVERIFY(socket.waitForConnected(5000));
+ QVERIFY(socket.waitForConnected(30000));
QVERIFY(device->isOpen());
while (!device->canReadLine())
- QVERIFY(device->waitForReadyRead(5000));
+ QVERIFY(device->waitForReadyRead(30000));
char buf2[1024];
memset(buf2, 0, sizeof(buf2));