Commit 756289d459468bada27300d90a55b1952f883722

Authored by Wiebe Cazemier
1 parent 0e79ef5d

Fix bug in persistence tests

It tested the wrong thing. Tests still pass.
FlashMQTests/tst_maintests.cpp
@@ -1069,7 +1069,7 @@ void MainTests::testSavingSessions() @@ -1069,7 +1069,7 @@ void MainTests::testSavingSessions()
1069 store->getSubscriptions(&store->root, "", true, store1Subscriptions); 1069 store->getSubscriptions(&store->root, "", true, store1Subscriptions);
1070 1070
1071 std::unordered_map<std::string, std::list<SubscriptionForSerializing>> store2Subscriptions; 1071 std::unordered_map<std::string, std::list<SubscriptionForSerializing>> store2Subscriptions;
1072 - store->getSubscriptions(&store->root, "", true, store2Subscriptions); 1072 + store2->getSubscriptions(&store->root, "", true, store2Subscriptions);
1073 1073
1074 MYCASTCOMPARE(store1Subscriptions.size(), 4); 1074 MYCASTCOMPARE(store1Subscriptions.size(), 4);
1075 MYCASTCOMPARE(store2Subscriptions.size(), 4); 1075 MYCASTCOMPARE(store2Subscriptions.size(), 4);