Skip to content

Commit

Permalink
MINIFICPP-2163 Cleanup LogMetricsPublisherTests
Browse files Browse the repository at this point in the history
Closes #1608

Signed-off-by: Marton Szasz <[email protected]>
  • Loading branch information
lordgamez authored and szaszm committed Aug 2, 2023
1 parent 259c539 commit bf26da5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libminifi/test/unit/LogMetricsPublisherTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "core/state/nodes/ResponseNodeLoader.h"
#include "core/RepositoryFactory.h"
#include "utils/IntegrationTestUtils.h"
#include "utils/file/FileUtils.h"

using namespace std::literals::chrono_literals;

Expand All @@ -42,6 +43,11 @@ class LogPublisherTestFixture {
flow_file_repo_->initialize(configuration_);
}

~LogPublisherTestFixture() {
minifi::utils::file::delete_dir(provenance_repo_->getDirectory());
minifi::utils::file::delete_dir(flow_file_repo_->getDirectory());
}

protected:
std::shared_ptr<Configure> configuration_;
std::shared_ptr<core::Repository> provenance_repo_;
Expand Down

0 comments on commit bf26da5

Please sign in to comment.