Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
chakaz committed Nov 5, 2023
1 parent de91c1f commit 9fd6dd4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/server/test_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ void BaseFamilyTest::ShutdownService() {
}

// Don't save files during shutdown
DelSerializedFiles();
CleanupSnapshots();
absl::SetFlag(&FLAGS_dbfilename, "");

service_->Shutdown();
Expand All @@ -281,11 +281,11 @@ void BaseFamilyTest::InitWithDbFilename() {
ShutdownService();

absl::SetFlag(&FLAGS_dbfilename, "rdbtestdump");
DelSerializedFiles();
CleanupSnapshots();
ResetService();
}

void BaseFamilyTest::DelSerializedFiles() {
void BaseFamilyTest::CleanupSnapshots() {
string dbfilename = absl::GetFlag(FLAGS_dbfilename);
if (dbfilename.empty())
return;
Expand Down
2 changes: 1 addition & 1 deletion src/server/test_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class BaseFamilyTest : public ::testing::Test {
void ShutdownService();

void InitWithDbFilename();
void DelSerializedFiles();
void CleanupSnapshots();

bool IsLocked(DbIndex db_index, std::string_view key) const;
ConnectionContext::DebugInfo GetDebugInfo(const std::string& id) const;
Expand Down

0 comments on commit 9fd6dd4

Please sign in to comment.