From cfc5692bf7c556d5c9f66f782fa15d1e8b80e761 Mon Sep 17 00:00:00 2001 From: Paul Adenot Date: Mon, 5 Dec 2022 17:27:36 +0100 Subject: [PATCH] Account for the fact that some OSes have longer callback duration and async logging is batched --- test/test_logging.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/test_logging.cpp b/test/test_logging.cpp index f802372..2e206ae 100644 --- a/test/test_logging.cpp +++ b/test/test_logging.cpp @@ -75,7 +75,7 @@ void wait_for_audio_callback() { data_callback_call_count.load(std::memory_order_acquire); while (audio_callback_index == data_callback_call_count.load(std::memory_order_acquire)) { - delay(10); + delay(100); } } @@ -146,7 +146,6 @@ TEST(cubeb, logging) log_statements_received.store(0, std::memory_order_release); // Disabling logging should flush any log message -- wait a bit and check // that this is true. - // delay(100); ASSERT_EQ(log_statements_received.load(std::memory_order_acquire), 0u); log_callback_set = false; }