diff options
-rw-r--r-- | tests/storagebenchmark.cpp | 2 | ||||
-rw-r--r-- | tests/storagetest.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/storagebenchmark.cpp b/tests/storagebenchmark.cpp index f9fea7c..6010539 100644 --- a/tests/storagebenchmark.cpp +++ b/tests/storagebenchmark.cpp | |||
@@ -79,7 +79,7 @@ private Q_SLOTS: | |||
79 | 79 | ||
80 | Storage *store = 0; | 80 | Storage *store = 0; |
81 | if (useDb) { | 81 | if (useDb) { |
82 | store = new Storage(testDataPath, dbName); | 82 | store = new Storage(testDataPath, dbName, Storage::ReadWrite); |
83 | } | 83 | } |
84 | 84 | ||
85 | std::ofstream myfile; | 85 | std::ofstream myfile; |
diff --git a/tests/storagetest.cpp b/tests/storagetest.cpp index 242e424..3981c4b 100644 --- a/tests/storagetest.cpp +++ b/tests/storagetest.cpp | |||
@@ -19,7 +19,7 @@ private: | |||
19 | 19 | ||
20 | void populate(int count) | 20 | void populate(int count) |
21 | { | 21 | { |
22 | Storage storage(testDataPath, dbName); | 22 | Storage storage(testDataPath, dbName, Storage::ReadWrite); |
23 | for (int i = 0; i < count; i++) { | 23 | for (int i = 0; i < count; i++) { |
24 | //This should perhaps become an implementation detail of the db? | 24 | //This should perhaps become an implementation detail of the db? |
25 | if (i % 10000 == 0) { | 25 | if (i % 10000 == 0) { |