fix suddenly failing tests
This commit is contained in:
parent
fcc6ee45fe
commit
4768644c4e
@ -63,7 +63,7 @@ void TestEvents::triggerEvent()
|
|||||||
int port = device->paramValue(httpportParamTypeId).toInt();
|
int port = device->paramValue(httpportParamTypeId).toInt();
|
||||||
QNetworkRequest request(QUrl(QString("http://localhost:%1/generateevent?eventtypeid=%2").arg(port).arg(mockEvent1Id.toString())));
|
QNetworkRequest request(QUrl(QString("http://localhost:%1/generateevent?eventtypeid=%2").arg(port).arg(mockEvent1Id.toString())));
|
||||||
QNetworkReply *reply = nam.get(request);
|
QNetworkReply *reply = nam.get(request);
|
||||||
reply->deleteLater();
|
connect(reply, &QNetworkReply::finished, reply, &QNetworkReply::deleteLater);
|
||||||
|
|
||||||
// Lets wait for the notification
|
// Lets wait for the notification
|
||||||
spy.wait();
|
spy.wait();
|
||||||
@ -92,7 +92,7 @@ void TestEvents::triggerStateChangeEvent()
|
|||||||
int port = device->paramValue(httpportParamTypeId).toInt();
|
int port = device->paramValue(httpportParamTypeId).toInt();
|
||||||
QNetworkRequest request(QUrl(QString("http://localhost:%1/setstate?%2=%3").arg(port).arg(mockIntStateId.toString()).arg(11)));
|
QNetworkRequest request(QUrl(QString("http://localhost:%1/setstate?%2=%3").arg(port).arg(mockIntStateId.toString()).arg(11)));
|
||||||
QNetworkReply *reply = nam.get(request);
|
QNetworkReply *reply = nam.get(request);
|
||||||
reply->deleteLater();
|
connect(reply, &QNetworkReply::finished, reply, &QNetworkReply::deleteLater);
|
||||||
|
|
||||||
// Lets wait for the notification
|
// Lets wait for the notification
|
||||||
spy.wait();
|
spy.wait();
|
||||||
|
|||||||
Reference in New Issue
Block a user