summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@theqtcompany.com>2015-10-19 10:48:19 +0200
committerLiang Qi <liang.qi@theqtcompany.com>2015-10-20 07:04:58 +0000
commit043ecfb68e1af7a8b0225e59326bf8af344df043 (patch)
tree3ec3a3114d282c83e6829a535f98f79ba60aa743 /tests
parent08582917b43af8670658c210b2cb2a8b06e04252 (diff)
downloadqtwebsockets-043ecfb68e1af7a8b0225e59326bf8af344df043.tar.gz
Test: stablize tst_QWebSocket::tst_moveToThread()5.5
For e8335d48, the test is flaky, but old CI treated it as a PASS. Task-number: QTBUG-48843 Change-Id: I4d2c0d270824d7b1e954e9174493fba2c1c5433f Reviewed-by: Dmitry Shachnev <mitya57@gmail.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com> Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/websockets/qwebsocket/tst_qwebsocket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/websockets/qwebsocket/tst_qwebsocket.cpp b/tests/auto/websockets/qwebsocket/tst_qwebsocket.cpp
index cc3bca6..80bf19a 100644
--- a/tests/auto/websockets/qwebsocket/tst_qwebsocket.cpp
+++ b/tests/auto/websockets/qwebsocket/tst_qwebsocket.cpp
@@ -668,7 +668,7 @@ void tst_QWebSocket::tst_moveToThread()
socket->asyncClose();
- QCOMPARE(timer.isActive(), false);
+ QTRY_COMPARE_WITH_TIMEOUT(loop.isRunning(), false, 200);
QCOMPARE(socket->receivedMessage, textMessage);
socket->deleteLater();