summaryrefslogtreecommitdiffstats
path: root/tests/testqPrefCloudStorage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testqPrefCloudStorage.cpp')
-rw-r--r--tests/testqPrefCloudStorage.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/testqPrefCloudStorage.cpp b/tests/testqPrefCloudStorage.cpp
index d18c7a6e7..9d55ca743 100644
--- a/tests/testqPrefCloudStorage.cpp
+++ b/tests/testqPrefCloudStorage.cpp
@@ -165,13 +165,11 @@ void TestQPrefCloudStorage::test_multiple()
{
// test multiple instances have the same information
- auto tst_direct = new qPrefCloudStorage;
-
prefs.cloud_timeout = 25;
auto tst = qPrefCloudStorage::instance();
- QCOMPARE(tst->cloud_timeout(), tst_direct->cloud_timeout());
- QCOMPARE(tst_direct->cloud_timeout(), 25);
+ QCOMPARE(tst->cloud_timeout(), qPrefCloudStorage::cloud_timeout());
+ QCOMPARE(qPrefCloudStorage::cloud_timeout(), 25);
}
#define TEST(METHOD, VALUE) \