diff options
| author | Jesse Wilson <jessewilson@google.com> | 2011-08-14 18:13:24 -0400 |
|---|---|---|
| committer | Jesse Wilson <jessewilson@google.com> | 2011-08-14 18:13:24 -0400 |
| commit | f296f0cb984fb2435bedad23439c1fdc2ad61bd0 (patch) | |
| tree | 0cddd252b5526c3df2da66c27df2947b61ea570a /annotations/generate_annotated_java_files.py | |
| parent | cf216b0bb538b3e555af205f4fad8064331b9265 (diff) | |
Fix a racy preferences test to not rely on disk flush latency.
This test invisibly uses two threads - the test thread and the
preference API's preference change thread. This test was relying
on flush() taking long enough that the other thread would have
posted its event before it returned.
The new test just waits up to 100ms. This is still racy but it
eliminated the false failures in my runs.
Change-Id: I87799b36cb4e5e26d8ca04e4529d1db0b936acb3
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions
