From 0ca53b77ae43d93934cdb5aaeb0934ce3529ded2 Mon Sep 17 00:00:00 2001 From: Jan Grulich Date: Thu, 27 Oct 2022 12:12:42 +0200 Subject: [PATCH] SharedScreenCastStream test: increase waiting times This doesn't effect for how long the test will run, it just gives PipeWire more time to establish connection and create empty buffers before we try to work with it. All the waiting events will be interrupted by signals once we no longer need to wait so it doesn't matter if we wait 2 seconds or 5 seconds. Bug: webrtc:14568 Change-Id: Ie918e8943bf882059b1289f57595fc302216745e Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/280700 Reviewed-by: Alexander Cooper Commit-Queue: Jan Grulich Cr-Commit-Position: refs/heads/main@{#38486} --- .../linux/wayland/shared_screencast_stream_unittest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/desktop_capture/linux/wayland/shared_screencast_stream_unittest.cc b/modules/desktop_capture/linux/wayland/shared_screencast_stream_unittest.cc index 196e1f7972..f4d5351bd9 100644 --- a/modules/desktop_capture/linux/wayland/shared_screencast_stream_unittest.cc +++ b/modules/desktop_capture/linux/wayland/shared_screencast_stream_unittest.cc @@ -28,7 +28,7 @@ using ::testing::Invoke; namespace webrtc { -constexpr TimeDelta kShortWait = TimeDelta::Seconds(2); +constexpr TimeDelta kShortWait = TimeDelta::Seconds(5); constexpr TimeDelta kLongWait = TimeDelta::Seconds(15); constexpr int kBytesPerPixel = 4;