From d189be12bad89ba34b942c64964c97fd1e7340fa Mon Sep 17 00:00:00 2001 From: Zaggy1024 Date: Mon, 30 Mar 2026 18:42:24 -0500 Subject: [PATCH] Tests: Increase the TestPlaybackStream disconnection timeout Apparently the queued task often takes longer than 100ms to finish, and the stream is kept alive for the duration of its execution. --- Tests/LibMedia/TestPlaybackStream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/LibMedia/TestPlaybackStream.cpp b/Tests/LibMedia/TestPlaybackStream.cpp index 2f794e5e32..b0a39fe673 100644 --- a/Tests/LibMedia/TestPlaybackStream.cpp +++ b/Tests/LibMedia/TestPlaybackStream.cpp @@ -60,7 +60,7 @@ TEST_CASE(create_and_destroy_playback_stream) // some operations, so it won't necessarily be destroyed immediately. auto wait_start = MonotonicTime::now_coarse(); while (Audio::PulseAudioContext::is_connected()) { - if (MonotonicTime::now_coarse() - wait_start > AK::Duration::from_milliseconds(100)) + if (MonotonicTime::now_coarse() - wait_start > AK::Duration::from_milliseconds(1000)) VERIFY_NOT_REACHED(); } # endif