diff options
author | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2017-11-29 10:23:02 +0100 |
---|---|---|
committer | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2017-11-29 12:41:41 +0000 |
commit | 1b9a3c75259ceaa5e475b47e396a548c475df401 (patch) | |
tree | 8d2c02f4b211107c1eb0242e0350106f68595afa | |
parent | 4577179620f98be257ad745c5b406d92b3b16aba (diff) | |
download | qtwebsockets-1b9a3c75259ceaa5e475b47e396a548c475df401.tar.gz |
Fix apparently invalid auto-test (qmlwebsockets)
It makes sense to first start listening (server.listen = true) and then
connect (socket.active = true).
Task-number: QTBUG-59388
Change-Id: I4235dad87ee3a62ebf75cec39e5d9fa4b7ed7552
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
-rw-r--r-- | tests/auto/qml/qmlwebsockets/tst_qmlwebsockets.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qml/qmlwebsockets/tst_qmlwebsockets.qml b/tests/auto/qml/qmlwebsockets/tst_qmlwebsockets.qml index d0f19f6..66c1ed0 100644 --- a/tests/auto/qml/qmlwebsockets/tst_qmlwebsockets.qml +++ b/tests/auto/qml/qmlwebsockets/tst_qmlwebsockets.qml @@ -52,8 +52,8 @@ Rectangle { TestCase { function ensureConnected() { - socket.active = true; server.listen = true; + socket.active = true; tryCompare(socket, 'status', WebSocket.Open); verify(server.currentSocket); } |