[core] Rename resetCache to resetDatabase

Avoid confusion about what is being reset. In this case, the whole
database and not only the ambient cache.
This commit is contained in:
Thiago Marcos P. Santos
2019-06-14 15:03:13 +03:00
parent 9beb740fb7
commit 59e7b9a878
8 changed files with 14 additions and 14 deletions

View File

@@ -1474,7 +1474,7 @@ TEST(OfflineDatabase, TEST_REQUIRES_WRITE(MergeDatabaseWithDiskFull)) {
}
#endif // __QT__
TEST(OfflineDatabse, ChangePath) {
TEST(OfflineDatabase, ChangePath) {
std::string newPath("test/fixtures/offline_database/test.db");
OfflineDatabase db(":memory:");
db.changePath(newPath);
@@ -1482,13 +1482,13 @@ TEST(OfflineDatabse, ChangePath) {
util::deleteFile(newPath);
}
TEST(OfflineDatabse, resetCache) {
TEST(OfflineDatabase, ResetDatabase) {
FixtureLog log;
deleteDatabaseFiles();
util::copyFile(filename, "test/fixtures/offline_database/satellite_test.db");
OfflineDatabase db(filename);
auto result = db.resetCache();
auto result = db.resetDatabase();
EXPECT_FALSE(result);
auto regions = db.listRegions().value();