summaryrefslogtreecommitdiffstats
path: root/tests/testqPrefCloudStorage.cpp
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2018-07-28 17:21:51 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-07-30 07:43:22 -0700
commit600da8b9ff4946d6500e2327dc8f7e361a3616cc (patch)
tree0a688b20a7941c7c61eb78388d41b85f4b1d1c0e /tests/testqPrefCloudStorage.cpp
parent311b2672da5bda0efbdda70bfe33ccc088ba5c8d (diff)
downloadsubsurface-600da8b9ff4946d6500e2327dc8f7e361a3616cc.tar.gz
tests: correct test_multiple in all qPref classes
test_multiple did not test correctly, correct. Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'tests/testqPrefCloudStorage.cpp')
-rw-r--r--tests/testqPrefCloudStorage.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/testqPrefCloudStorage.cpp b/tests/testqPrefCloudStorage.cpp
index 232aa990e..2ca2bb81a 100644
--- a/tests/testqPrefCloudStorage.cpp
+++ b/tests/testqPrefCloudStorage.cpp
@@ -20,7 +20,6 @@ void TestQPrefCloudStorage::test_struct_get()
auto tst = qPrefCloudStorage::instance();
- prefs.animation_speed = 17;
prefs.cloud_base_url = copy_qstring("new url");
prefs.cloud_git_url = copy_qstring("new again url");
prefs.cloud_storage_email = copy_qstring("myEmail");
@@ -199,13 +198,15 @@ void TestQPrefCloudStorage::test_multiple()
{
// test multiple instances have the same information
- prefs.animation_speed = 37;
+ prefs.userid = copy_qstring("my user");
auto tst_direct = new qPrefCloudStorage;
prefs.cloud_timeout = 25;
auto tst = qPrefCloudStorage::instance();
QCOMPARE(tst->cloud_timeout(), tst_direct->cloud_timeout());
+ QCOMPARE(tst->userid(), tst_direct->userid());
+ QCOMPARE(tst_direct->cloud_timeout(), 25);
}
#define TEST(METHOD, VALUE) \