Deflake AsyncTaskThread test
Since interruption is raised and caught in a separate thread, it may take some time to get interrupted exception on the test thread. Also, we should not feed data since the task may be executed even before it gets interrupted. Test: I was able to reproduce this issue when I add some delay in the test thread, which proves my point. With the changed logic I could not reproduce the issue. Bug: 1022954 Change-Id: I48899279d5bc678a75f40b21b6adf3faf2efe2f5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1906639 Commit-Queue: Changwan Ryu <changwan@chromium.org> Reviewed-by:Richard Coles <torne@chromium.org> Cr-Commit-Position: refs/heads/master@{#714700}
Showing
Please register or sign in to comment