summaryrefslogtreecommitdiff
path: root/tests/manual/websockets/tst_websockets.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/websockets/tst_websockets.cpp')
-rw-r--r--tests/manual/websockets/tst_websockets.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/manual/websockets/tst_websockets.cpp b/tests/manual/websockets/tst_websockets.cpp
index 6b327aa..fa5a236 100644
--- a/tests/manual/websockets/tst_websockets.cpp
+++ b/tests/manual/websockets/tst_websockets.cpp
@@ -32,6 +32,12 @@
#include <QDebug>
#include "QtWebSockets/QWebSocket"
+// Run 'wstest -m echoserver -w ws://localhost:9000' before launching
+// the test.
+
+// wstest is part of the autobahn-testsuite:
+// https://github.com/crossbario/autobahn-testsuite
+
class tst_WebSocketsTest : public QObject
{
Q_OBJECT
@@ -91,7 +97,7 @@ tst_WebSocketsTest::tst_WebSocketsTest() :
void tst_WebSocketsTest::initTestCase()
{
m_pWebSocket = new QWebSocket();
- m_pWebSocket->open(m_url, true);
+ m_pWebSocket->open(m_url);
QTRY_VERIFY_WITH_TIMEOUT(m_pWebSocket->state() == QAbstractSocket::ConnectedState, 1000);
QVERIFY(m_pWebSocket->isValid());
}