telepathy-qt: Fix TestAccountSet::testFilters
David Edmundson
davidedmundson at kemper.freedesktop.org
Mon Jan 27 15:11:49 PST 2014
Module: telepathy-qt
Branch: master
Commit: 1adfbc3329dfa604165d9fd197abb14000e1ac1f
URL: http://cgit.freedesktop.org/telepathy/telepathy-qt/commit/?id=1adfbc3329dfa604165d9fd197abb14000e1ac1f
Author: Martin Kampas <martin.kampas at tieto.com>
Date: Mon Nov 11 15:39:00 2013 +0100
Fix TestAccountSet::testFilters
The ordering of mAM->allAccounts() has changed. Fixed so it works
irrespective of the order.
Reviewed-by: David Edmundson <davidedmundson at kde.org>
---
tests/dbus/account-set.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/dbus/account-set.cpp b/tests/dbus/account-set.cpp
index 07cc1ea..8bc51be 100644
--- a/tests/dbus/account-set.cpp
+++ b/tests/dbus/account-set.cpp
@@ -258,7 +258,7 @@ void TestAccountSet::testFilters()
createAccount("spurious", "normal", "spuriousnormal", parameters);
QCOMPARE(mAM->allAccounts().size(), 2);
QCOMPARE(mAM->validAccounts()->accounts().size(), 2);
- AccountPtr spuriousAcc = mAM->allAccounts()[1];
+ AccountPtr spuriousAcc = *(mAM->allAccounts().toSet() -= fooAcc).begin();
Tp::AccountSetPtr filteredAccountSet;
More information about the telepathy-commits
mailing list