aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorPaul Adenot <[email protected]>2022-12-05 17:27:36 +0100
committerPaul Adenot <[email protected]>2022-12-05 17:27:36 +0100
commitcfc5692bf7c556d5c9f66f782fa15d1e8b80e761 (patch)
tree08dcd15214a4e3678ae56b08e6100ac90ad84050 /test
parentb8765e132de947a391a7e9b3787c4cc682ed82f1 (diff)
downloadcubeb-cfc5692bf7c556d5c9f66f782fa15d1e8b80e761.tar.gz
cubeb-cfc5692bf7c556d5c9f66f782fa15d1e8b80e761.zip
Account for the fact that some OSes have longer callback duration and async logging is batched
Diffstat (limited to 'test')
-rw-r--r--test/test_logging.cpp3
1 files changed, 1 insertions, 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;
}