Make WaitForExistingTasksOnLoop from SingleClientDirectorySyncTest saner
This is an attempt to deflake the currently disabled SingleClientDirectorySyncTest.SingleClientDirectorySyncTest. The test was failing due to running into the 45s timeout in WaitForExistingTasksOnLoop. The theory is that that's because that function is based on WaitableEvent, and thus doesn't allow processing of events on the main thread while waiting. This CL changes it to spin a nested RunLoop instead. I could never reproduce the flakes locally, so I don't know if this helps at all. As such, this CL leaves the test disabled for now; I'll send a separate one to try re-enabling. Bug: 850980 Change-Id: I16823fe01574662586e578d5f601299c58004286 Reviewed-on: https://chromium-review.googlesource.com/1116549Reviewed-by:Greg Thompson <grt@chromium.org> Commit-Queue: Marc Treib <treib@chromium.org> Cr-Commit-Position: refs/heads/master@{#570710}
Showing
Please register or sign in to comment