[network/ruqola] src/core/autotests: Fix autotest

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit e2badf10b075cc9e46ea9aff380de92a04ee408f by Laurent Montel.
Committed on 06/08/2026 at 17:34.
Pushed by mlaurent into branch 'master'.

Fix autotest

M  +3    -3    src/core/autotests/sessionkeydistributiontest.cpp

https://invent.kde.org/network/ruqola/-/commit/e2badf10b075cc9e46ea9aff380de92a04ee408f

diff --git a/src/core/autotests/sessionkeydistributiontest.cpp b/src/core/autotests/sessionkeydistributiontest.cpp
index 938d811e35..ff29ee73a4 100644
--- a/src/core/autotests/sessionkeydistributiontest.cpp
+++ b/src/core/autotests/sessionkeydistributiontest.cpp
@@ -150,10 +150,10 @@ void SessionKeyDistributionTest::testJsonPayload()
 
     const QJsonDocument doc = job.json();
     const QJsonObject obj = doc.object();
-    QCOMPARE(obj[QStringLiteral("rid")].toString(), QStringLiteral("123"));
-    QJsonArray arr = obj[QStringLiteral("keys")].toArray();
+    const QJsonObject usersSuggestedGroupKeys = obj[QStringLiteral("usersSuggestedGroupKeys")].toObject();
+    QJsonArray arr = usersSuggestedGroupKeys[QStringLiteral("123")].toArray();
     QCOMPARE(arr.size(), 2);
-    QCOMPARE(arr[0].toObject()[QStringLiteral("userId")].toString(), QStringLiteral("users"));
+    QCOMPARE(arr[0].toObject()[QStringLiteral("_id")].toString(), QStringLiteral("users"));
     QCOMPARE(arr[0].toObject()[QStringLiteral("key")].toString(), QStringLiteral("base64keyA"));
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.