fix notification tests
This commit is contained in:
parent
e8053a1df5
commit
c7381c38e4
@ -136,6 +136,11 @@ QVariant GuhTestBase::injectAndWait(const QString &method, const QVariantMap &pa
|
|||||||
return QVariant();
|
return QVariant();
|
||||||
}
|
}
|
||||||
QVariantMap response = jsonDoc.toVariant().toMap();
|
QVariantMap response = jsonDoc.toVariant().toMap();
|
||||||
|
|
||||||
|
// skip notifications
|
||||||
|
if (response.contains("notification"))
|
||||||
|
continue;
|
||||||
|
|
||||||
if (response.value("id").toInt() == m_commandId) {
|
if (response.value("id").toInt() == m_commandId) {
|
||||||
m_commandId++;
|
m_commandId++;
|
||||||
return jsonDoc.toVariant();
|
return jsonDoc.toVariant();
|
||||||
|
|||||||
Reference in New Issue
Block a user