Fix tests
This commit is contained in:
parent
a45e2c9ec4
commit
06c27fb5aa
@ -230,9 +230,13 @@ void RemoteProxyTests::webserverConnectionBlocked()
|
|||||||
// Make sure the websocket server is not running
|
// Make sure the websocket server is not running
|
||||||
QVERIFY(!Engine::instance()->webSocketServer()->running());
|
QVERIFY(!Engine::instance()->webSocketServer()->running());
|
||||||
|
|
||||||
|
QSignalSpy closedSpy(&dummyServer, &QWebSocketServer::closed);
|
||||||
dummyServer.close();
|
dummyServer.close();
|
||||||
|
closedSpy.wait();
|
||||||
|
QVERIFY(closedSpy.count() == 1);
|
||||||
|
|
||||||
// Try again
|
// Try again
|
||||||
|
cleanUpEngine();
|
||||||
startServer();
|
startServer();
|
||||||
|
|
||||||
// Clean up
|
// Clean up
|
||||||
|
|||||||
Reference in New Issue
Block a user