Skip to content

Commit

Permalink
fix utils
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniofilipovic committed Jun 5, 2024
1 parent 9104ab3 commit feaff28
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions tests/unit/coordinator_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,16 @@ using memgraph::coordination::CoordinatorInstanceInitConfig;

class CoordinationUtils : public ::testing::Test {
protected:
void SetUp() override {}

void TearDown() override {}
void SetUp() override {
if (!std::filesystem::exists(test_folder_)) {
std::filesystem::create_directories(test_folder_);
}
}

void TearDown() override {
if (!std::filesystem::exists(test_folder_)) return;
std::filesystem::remove_all(test_folder_);
}

std::filesystem::path test_folder_{std::filesystem::temp_directory_path() / "MG_tests_unit_coordination"};

Expand Down

0 comments on commit feaff28

Please sign in to comment.