From 1a429fd3103c16899f1f7be25046bb63b2b314c3 Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Fri, 5 Dec 2014 13:00:56 +0100 Subject: make tests declare ReadWrite when writing --- tests/storagebenchmark.cpp | 2 +- tests/storagetest.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') 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: Storage *store = 0; if (useDb) { - store = new Storage(testDataPath, dbName); + store = new Storage(testDataPath, dbName, Storage::ReadWrite); } 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: void populate(int count) { - Storage storage(testDataPath, dbName); + Storage storage(testDataPath, dbName, Storage::ReadWrite); for (int i = 0; i < count; i++) { //This should perhaps become an implementation detail of the db? if (i % 10000 == 0) { -- cgit v1.2.3