summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-05-07 13:42:31 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-05-08 13:18:28 +0200
commit54ed56db85198e7d884037bf2677e93f78c71145 (patch)
tree841db5f2fe81b779221e5d0c156191f8aa61163b /tests
parent0c488149eafadc550ee4034a49c1bacdc1e955ec (diff)
downloadqtwebsockets-54ed56db85198e7d884037bf2677e93f78c71145.tar.gz
Stabilize test
It times out on my machine. Change-Id: I6c57167c76eca434b2c64d4938e034452e4d7e02 Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
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 aca3f40..4f06e22 100644
--- a/tests/auto/websockets/qwebsocket/tst_qwebsocket.cpp
+++ b/tests/auto/websockets/qwebsocket/tst_qwebsocket.cpp
@@ -623,7 +623,7 @@ void tst_QWebSocket::tst_errorString()
socket.open(QUrl(QStringLiteral("ws://someserver.on.mars:9999")));
- QTRY_COMPARE(errorSpy.count(), 1);
+ QTRY_COMPARE_WITH_TIMEOUT(errorSpy.count(), 1, 10000);
QList<QVariant> arguments = errorSpy.takeFirst();
QAbstractSocket::SocketError socketError =
qvariant_cast<QAbstractSocket::SocketError>(arguments.at(0));