diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2010-04-16 14:18:38 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2010-04-16 14:19:05 (GMT) |
commit | bd7da8cebf1eabb99a80a5de90bfc1aa15a9e5b9 (patch) | |
tree | 0ccacf78a11a1b7c38144cc854abc6f15097daf7 /tests/manual | |
parent | 1632befae9b7c5faf5912923915d85ae1480b9e6 (diff) | |
download | Qt-bd7da8cebf1eabb99a80a5de90bfc1aa15a9e5b9.zip Qt-bd7da8cebf1eabb99a80a5de90bfc1aa15a9e5b9.tar.gz Qt-bd7da8cebf1eabb99a80a5de90bfc1aa15a9e5b9.tar.bz2 |
Increase the timeout for the QNAM getter test to 30 seconds
Diffstat (limited to 'tests/manual')
-rw-r--r-- | tests/manual/network_remote_stresstest/tst_network_remote_stresstest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/manual/network_remote_stresstest/tst_network_remote_stresstest.cpp b/tests/manual/network_remote_stresstest/tst_network_remote_stresstest.cpp index 2f0bc2c..90a95e7 100644 --- a/tests/manual/network_remote_stresstest/tst_network_remote_stresstest.cpp +++ b/tests/manual/network_remote_stresstest/tst_network_remote_stresstest.cpp @@ -468,15 +468,15 @@ void tst_NetworkRemoteStressTest::namRemoteGet() replies.append(QSharedPointer<QNetworkReply>(r)); } - while (!timeout.hasExpired(10000)) { - QTestEventLoop::instance().enterLoop(10); + while (!timeout.hasExpired(30000)) { + QTestEventLoop::instance().enterLoop(30 - timeout.elapsed() / 1000); int done = 0; for (int j = 0; j < replies.size(); ++j) done += replies[j]->isFinished() ? 1 : 0; if (done == replies.size()) break; } - if (timeout.hasExpired(10000)) { + if (timeout.hasExpired(30000)) { for (int j = 0; j < replies.size(); ++j) if (!replies[j]->isFinished()) qDebug() << "Request" << replies[j]->url() << "not finished"; |