summaryrefslogtreecommitdiffhomepage
path: root/tests/test-storage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-storage.cpp')
-rw-r--r--tests/test-storage.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/test-storage.cpp b/tests/test-storage.cpp
index 67d7236..11d8a20 100644
--- a/tests/test-storage.cpp
+++ b/tests/test-storage.cpp
@@ -19,6 +19,13 @@ class StorageTest: public ::testing::Test
{
protected:
StorageTest(){
+ }
+
+ ~StorageTest() override{
+ }
+
+ void SetUp() override
+ {
File::setFile(testConfigFilename, R"CONFIG(
<config>
<datapath>.</datapath>
@@ -31,7 +38,8 @@ protected:
m_config = Config{testConfigFilename};
}
- ~StorageTest(){
+ void TearDown() override
+ {
std::error_code ec;
fs::remove(testDbFilename, ec);
fs::remove(testConfigFilename, ec);