summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorMarkus Goetz <Markus.Goetz@nokia.com>2010-01-11 16:49:02 (GMT)
committerMarkus Goetz <Markus.Goetz@nokia.com>2010-01-11 16:53:22 (GMT)
commitc69b85ebf532bf7daf0644f4b3d0b2a6c19ace1d (patch)
tree8b52f8d9ff3190d7a2376c3c08d1cf8fa5cee0cf /tests/auto
parent14412557e7523ca39698ca4f4aa40ebe9c051d77 (diff)
downloadQt-c69b85ebf532bf7daf0644f4b3d0b2a6c19ace1d.zip
Qt-c69b85ebf532bf7daf0644f4b3d0b2a6c19ace1d.tar.gz
Qt-c69b85ebf532bf7daf0644f4b3d0b2a6c19ace1d.tar.bz2
tst_qhttpnetworkconnection: Relax condition in getMultipleWithPriorities
Test failed in 1 out of 5 cases. Relax the condition. It is not that bad if some (max connection count + 1) low priority requests finish first. Reviewed-by: Peter Hartmann
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/qhttpnetworkconnection/tst_qhttpnetworkconnection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qhttpnetworkconnection/tst_qhttpnetworkconnection.cpp b/tests/auto/qhttpnetworkconnection/tst_qhttpnetworkconnection.cpp
index 6fa09d5..cafbc2c 100644
--- a/tests/auto/qhttpnetworkconnection/tst_qhttpnetworkconnection.cpp
+++ b/tests/auto/qhttpnetworkconnection/tst_qhttpnetworkconnection.cpp
@@ -939,7 +939,7 @@ public Q_SLOTS:
else
QFAIL("Wrong priority!?");
- QVERIFY(highPrioReceived >= lowPrioReceived);
+ QVERIFY(highPrioReceived + 7 >= lowPrioReceived);
if (highPrioReceived + lowPrioReceived == requestCount)
QTestEventLoop::instance().exitLoop();