[neon/3rdparty/libaccounts-qt/Neon/unstable] debian/patches: Fix another broken test

Scarlett Moore null at kde.org
Tue Sep 19 19:43:05 BST 2023


Git commit 27fe7f8e7fd3c69495fae9e5de22e16b10373913 by Scarlett Moore.
Committed on 19/09/2023 at 20:42.
Pushed by scarlettmoore into branch 'Neon/unstable'.

Fix another broken test

M  +18   -5    debian/patches/commit-ca0447d

https://invent.kde.org/neon/3rdparty/libaccounts-qt/-/commit/27fe7f8e7fd3c69495fae9e5de22e16b10373913

diff --git a/debian/patches/commit-ca0447d b/debian/patches/commit-ca0447d
index 73a8723..5e9ceed 100644
--- a/debian/patches/commit-ca0447d
+++ b/debian/patches/commit-ca0447d
@@ -1,16 +1,16 @@
-From 49d3e39710a39265cdc10b372f41fc09c4a2830b Mon Sep 17 00:00:00 2001
+From d1ba880966e350f772945d7242a226c55947be15 Mon Sep 17 00:00:00 2001
 From: Scarlett Moore <sgmoore at kde.org>
 Date: Tue, 19 Sep 2023 10:29:27 -0700
-Subject: Fix tags test as class QList<QString>’ {aka ‘class QList<QString>’}
- has no member named ‘toSet’ and the function was already updated to qset,
- just not the test
+Subject: Fix tests as class QList<QString>’ {aka ‘class QList<QString>’} has
+ no member named ‘toSet’ and the function was already updated to qset, just
+ not the test
 MIME-Version: 1.0
 Content-Type: text/plain; charset=UTF-8
 Content-Transfer-Encoding: 8bit
 
 
 diff --git a/tests/tst_libaccounts.cpp b/tests/tst_libaccounts.cpp
-index 471e3d5..c64bcf4 100644
+index 471e3d5..15ff954 100644
 --- a/tests/tst_libaccounts.cpp
 +++ b/tests/tst_libaccounts.cpp
 @@ -326,11 +326,11 @@ void AccountsTest::testService()
@@ -28,3 +28,16 @@ index 471e3d5..c64bcf4 100644
      QVERIFY(service.hasTag("email"));
      QVERIFY(!service.hasTag("chat"));
  
+@@ -687,10 +687,10 @@ void AccountsTest::testAccountService()
+     spyChanged.clear();
+     spyEnabled.clear();
+ 
+-    QStringList expectedChanges;
++    QSet<String> expectedChanges;
+     expectedChanges << "parameters/server";
+     expectedChanges << "enabled";
+-    QCOMPARE(m_accountServiceChangedFields.toSet(), expectedChanges.toSet());
++    QCOMPARE(m_accountServiceChangedFields, expectedChanges);
+ 
+     QCOMPARE(accountService->value("server").toString(),
+              UTF8("www.example.com"));


More information about the Neon-commits mailing list