From fcb661d0e9e38498ec50138f9eb2c27850a300c2 Mon Sep 17 00:00:00 2001 From: gabime Date: Sun, 2 Dec 2018 19:04:44 +0200 Subject: [PATCH] Fixed tests --- tests/test_misc.cpp | 2 +- tests/test_registry.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_misc.cpp b/tests/test_misc.cpp index 342b3dac..1b880835 100644 --- a/tests/test_misc.cpp +++ b/tests/test_misc.cpp @@ -86,7 +86,7 @@ TEST_CASE("periodic flush", "[periodic_flush]") auto test_sink = std::static_pointer_cast(logger->sinks()[0]); spdlog::flush_every(std::chrono::seconds(1)); - std::this_thread::sleep_for(std::chrono::milliseconds(1500)); + std::this_thread::sleep_for(std::chrono::milliseconds(1250)); REQUIRE(test_sink->flush_counter() == 1); spdlog::flush_every(std::chrono::seconds(0)); spdlog::drop_all(); diff --git a/tests/test_registry.cpp b/tests/test_registry.cpp index d306dba2..bd326ef0 100644 --- a/tests/test_registry.cpp +++ b/tests/test_registry.cpp @@ -110,4 +110,5 @@ TEST_CASE("disable automatic registration", "[registry]") REQUIRE(logger1->level() == log_level); REQUIRE(logger2->level() == log_level); spdlog::set_level(spdlog::level::info); + spdlog::set_automatic_registration(true); }