Skip to content

Commit

Permalink
Fix build the test without the websocket support
Browse files Browse the repository at this point in the history
Change-Id: If32f6a7a42258f9a5a8bed15c776ffa18240da24
Reviewed-by: Mårten Nordheim <[email protected]>
  • Loading branch information
msvetkin committed Dec 20, 2018
1 parent f81e7c8 commit 0763423
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/auto/qabstracthttpserver/tst_qabstracthttpserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ void tst_QAbstractHttpServer::websocket()
{
#if !defined(QT_WEBSOCKETS_LIB)
QSKIP("This test requires WebSocket support");
#endif // defined(QT_WEBSOCKETS_LIB)
#else
struct HttpServer : QAbstractHttpServer
{
bool handleRequest(const QHttpServerRequest &, QTcpSocket *) override { return false; }
Expand All @@ -152,6 +152,7 @@ void tst_QAbstractHttpServer::websocket()
QSignalSpy newConnectionSpy(&server, &HttpServer::newWebSocketConnection);
QTRY_COMPARE(newConnectionSpy.count(), 1);
delete server.nextPendingWebSocketConnection();
#endif // defined(QT_WEBSOCKETS_LIB)
}

void tst_QAbstractHttpServer::servers()
Expand Down

0 comments on commit 0763423

Please sign in to comment.