Skip to content
Snippets Groups Projects
Commit 30fc8c18 authored by Harald Scheirich's avatar Harald Scheirich
Browse files

BUG: fix logger handling in tests

parent 507b8ba3
No related branches found
No related tags found
No related merge requests found
......@@ -46,6 +46,11 @@ VisualTest::SetUp()
m_viewer = std::make_shared<VTKViewer>();
}
void VisualTest::TearDown()
{
Logger::getInstance().destroy();
}
void
VisualTest::runFor(const double duration, const double fixedTimestep)
{
......@@ -130,4 +135,4 @@ VisualTest::runFor(const double duration, const double fixedTimestep)
m_dt = fixedTimestep;
m_driver->setDesiredDt(m_dt);
m_driver->start();
}
\ No newline at end of file
}
......@@ -35,6 +35,8 @@ class VisualTest : public testing::Test
{
public:
void SetUp() override;
void TearDown() override;
///
/// \brief Run the simulation for given duration at given fixed timestep
......@@ -53,4 +55,4 @@ protected:
std::shared_ptr<imstk::SceneManager> m_sceneManager = nullptr;
std::shared_ptr<imstk::SimulationManager> m_driver = nullptr;
std::shared_ptr<imstk::Scene> m_scene = nullptr;
};
\ No newline at end of file
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment