Commit 7af21c6c authored by Igor Kushnir's avatar Igor Kushnir
Browse files

ItemRepositoryTestBase: delete the test repository during cleanup

ItemRepositoryRegistry::deleteRepositoryFromDisk() only marks the
repository for removal. Call ItemRepositoryRegistry::shutdown() to
actually remove the files when done testing. Even though QTemporaryDir
already removes the directory with all repository files in it, let us
shut down the repositories properly to test their cleanup too.
parent 5c6d6389
......@@ -29,4 +29,5 @@ void ItemRepositoryTestBase::cleanupTestCase()
return; // the repository has not been initialized => skip the cleanup
}
ItemRepositoryRegistry::deleteRepositoryFromDisk(m_repositoryDir.path());
globalItemRepositoryRegistry().shutdown();
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment