commit | a2390e7233cc493d7680cc08a2cae7007ca0b8b3 | [log] [tgz] |
---|---|---|
author | Daichi Hirono <hirono@google.com> | Tue Apr 12 11:29:07 2016 +0900 |
committer | Daichi Hirono <hirono@google.com> | Tue Apr 12 12:38:03 2016 +0900 |
tree | d98f4307c1cb0ccde5f4b710ebc1ae3bf168b129 | |
parent | 1461d3e7e5953933cd2239fc13cc936d7784ee51 [diff] |
Fix flakiness DocumentLoader#testCancelTask. For testing, we use blockDocument and unblockDocument test mehtods to control flow of DocumentLoader's background thread. Previously testCancelTask may exit before the background thread goes back from blocking, which causes InterruptedException. Fixes: 28125289 Change-Id: Id03826733c5b6f1da66b9280838eb1d2897ed5fc