From c8ba9d379a4c3ff28b3754020241229bafeaebd3 Mon Sep 17 00:00:00 2001 From: Odysseas Georgoudis Date: Thu, 16 May 2024 12:03:37 +0100 Subject: [PATCH] v4.0.0 refactor --- quill/test/integration_tests/RotatingSinkKeepOldestTest.cpp | 3 +++ .../test/integration_tests/RotatingSinkOverwriteOldestTest.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/quill/test/integration_tests/RotatingSinkKeepOldestTest.cpp b/quill/test/integration_tests/RotatingSinkKeepOldestTest.cpp index b2acc4b76..693ac51ed 100644 --- a/quill/test/integration_tests/RotatingSinkKeepOldestTest.cpp +++ b/quill/test/integration_tests/RotatingSinkKeepOldestTest.cpp @@ -73,6 +73,9 @@ TEST_CASE("rotating_sink_keep_oldest") Frontend::remove_logger(logger); } + // Wait until the backend thread stops for test stability + Backend::stop(); + // Read file and check std::vector const file_contents = quill::testing::file_contents(base_filename_a); REQUIRE_GE(file_contents.size(), 3); diff --git a/quill/test/integration_tests/RotatingSinkOverwriteOldestTest.cpp b/quill/test/integration_tests/RotatingSinkOverwriteOldestTest.cpp index 30f9cd743..7cb9622d6 100644 --- a/quill/test/integration_tests/RotatingSinkOverwriteOldestTest.cpp +++ b/quill/test/integration_tests/RotatingSinkOverwriteOldestTest.cpp @@ -73,6 +73,9 @@ TEST_CASE("rotating_sink_overwrite_oldest") Frontend::remove_logger(logger); } + // Wait until the backend thread stops for test stability + Backend::stop(); + // Read file and check std::vector const file_contents = quill::testing::file_contents(base_filename_a); REQUIRE_GE(file_contents.size(), 3);