We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8453236 commit 8d46211Copy full SHA for 8d46211
1 file changed
tests/test_logger.cpp
@@ -8,6 +8,12 @@
8
class SlickLoggerTest : public ::testing::Test {
9
protected:
10
void TearDown() override {
11
+ // Ensure the logger is fully stopped and reset between tests so that
12
+ // sinks (and the string_view keys in sinkname_index_map_ that point
13
+ // into their name strings) are destroyed before the next test starts.
14
+ slick::logger::Logger::instance().shutdown();
15
+ slick::logger::Logger::instance().reset();
16
+
17
// Clean up all test log files
18
std::filesystem::remove("test.log");
19
std::filesystem::remove("test_mt.log");
0 commit comments