Increase TaskQueueTest.PostALot timeouts
recent changed decreased timeout from forever to 1s which is not enough on some platforms Increase timeout to forever for posting 65k tasks. Also increase timeout for eventual destruction of the tasks to reduce change it would flake. Bug: chromium:972917 Change-Id: I4948d49c1514833ab190856fdd25a47a5bad91eb Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/141410 Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Cr-Commit-Position: refs/heads/master@{#28235}
This commit is contained in:
parent
5b2eda4895
commit
95e0a607f6
@ -225,14 +225,14 @@ TEST_P(TaskQueueTest, PostALot) {
|
||||
}));
|
||||
|
||||
// Before destroying the task queue wait until all child tasks are posted.
|
||||
EXPECT_TRUE(posting_done.Wait(1000));
|
||||
posting_done.Wait(rtc::Event::kForever);
|
||||
// Destroy the task queue.
|
||||
task_queue = nullptr;
|
||||
|
||||
// Expect all tasks are destroyed eventually. In some task queue
|
||||
// implementations that might happen on a different thread after task queue is
|
||||
// destroyed.
|
||||
EXPECT_TRUE(all_destroyed.Wait(1000));
|
||||
EXPECT_TRUE(all_destroyed.Wait(60000));
|
||||
EXPECT_LE(tasks_executed, kTaskCount);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user