Add timeout to Instrumentation#waitForIdleSync
waitForIdleSync can easily block forever in the case of a running animation or similar, and is used throughout our test infrastructure. This can lead to shard timeouts, especially with batched tests that have longer timeouts, making issues hard to debug. This change limits how long we can wait for the MessageQueue to be idle. Bug: 1108566 Change-Id: I449da5e71a49bee3513fd47ca659662f16f41d3e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2314989 Commit-Queue: Michael Thiessen <mthiesse@chromium.org> Reviewed-by:Yaron Friedman <yfriedman@chromium.org> Cr-Commit-Position: refs/heads/master@{#792014}
Showing
Please register or sign in to comment