Increase timeout in test-only helper SendTask back to infinity

Some tests on some bots are really slow. Rely on infrastructure timeouts instead.

Bug: None
Change-Id: I8cc3a9c221f80debfb875631ea59f1bfb1d3f6c7
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/157170
Reviewed-by: Steve Anton <steveanton@webrtc.org>
Commit-Queue: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#29502}
This commit is contained in:
Danil Chapovalov 2019-10-16 19:39:09 +02:00 committed by Commit Bot
parent 2bc1ea0b36
commit 562a37f926

View File

@ -31,7 +31,8 @@ void SendTask(TaskQueueBase* task_queue, Closure&& task, rtc::Location loc) {
rtc::Event event;
task_queue->PostTask(
ToQueuedTask(std::forward<Closure>(task), [&event] { event.Set(); }));
RTC_CHECK(event.Wait(/*give_up_after_ms=*/120'000, /*warn_after_ms=*/10'000))
RTC_CHECK(event.Wait(/*give_up_after_ms=*/rtc::Event::kForever,
/*warn_after_ms=*/10'000))
<< "Waited too long at " << loc.ToString();
}