From c7381c38e4ae48209b6c2fbd2ff07f3c2dcd3277 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Mon, 6 Jul 2015 11:11:08 +0200 Subject: [PATCH] fix notification tests --- tests/auto/guhtestbase.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/auto/guhtestbase.cpp b/tests/auto/guhtestbase.cpp index cd2a7437..bf9d1180 100644 --- a/tests/auto/guhtestbase.cpp +++ b/tests/auto/guhtestbase.cpp @@ -136,6 +136,11 @@ QVariant GuhTestBase::injectAndWait(const QString &method, const QVariantMap &pa return QVariant(); } QVariantMap response = jsonDoc.toVariant().toMap(); + + // skip notifications + if (response.contains("notification")) + continue; + if (response.value("id").toInt() == m_commandId) { m_commandId++; return jsonDoc.toVariant();