diff options
author | Kurt Pattyn <pattyn.kurt@gmail.com> | 2013-11-01 13:12:28 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-11-01 13:13:35 +0100 |
commit | d26e2ce1594af6e9088b176ccb31c4033e367839 (patch) | |
tree | a083044aa5ef67fddf3a57f67f4f1b5630468909 /tests | |
parent | 3501d4e9c315af97f0d7878d1af7f4300a815ea3 (diff) | |
download | qtwebsockets-d26e2ce1594af6e9088b176ccb31c4033e367839.tar.gz |
Add functionality to ignore ssl errors
Change-Id: I81248b9af104c0b3d37c9cfcef250a102f4b1d32
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/autobahn/compliance/tst_compliance.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/autobahn/compliance/tst_compliance.cpp b/tests/autobahn/compliance/tst_compliance.cpp index c1c9318..e1c4fad 100644 --- a/tests/autobahn/compliance/tst_compliance.cpp +++ b/tests/autobahn/compliance/tst_compliance.cpp @@ -2,8 +2,9 @@ #include <QtTest/qtestcase.h> #include <QSignalSpy> #include <QHostInfo> +#include <QSslError> #include <QDebug> -#include "qwebsocket.h" +#include <QWebSocket> class tst_ComplianceTest : public QObject { @@ -30,7 +31,7 @@ private: }; tst_ComplianceTest::tst_ComplianceTest() : - m_url("ws://localhost:9001") + m_url("wss://localhost:9001") { } @@ -56,7 +57,9 @@ void tst_ComplianceTest::runTestCase(int nbr, int total) { return; } + QWebSocket *pWebSocket = new QWebSocket; + pWebSocket->ignoreSslErrors(); QSignalSpy spy(pWebSocket, SIGNAL(disconnected())); //next for every case, connect to url @@ -93,6 +96,7 @@ void tst_ComplianceTest::autobahnTest() { //connect to autobahn server at url ws://ipaddress:port/getCaseCount QWebSocket *pWebSocket = new QWebSocket; + pWebSocket->ignoreSslErrors(); QUrl url = m_url; int numberOfTestCases = 0; QSignalSpy spy(pWebSocket, SIGNAL(disconnected())); |