diff options
author | Tobias Thierer <tobiast@google.com> | 2016-11-24 18:10:18 +0000 |
---|---|---|
committer | Tobias Thierer <tobiast@google.com> | 2016-11-29 14:22:27 +0000 |
commit | 40938aa75c0a78043ead765b5679e4413cb23edf (patch) | |
tree | 357a624e0d284550db1dfb3f3757f7a9bac0cd4f /annotations/generate_annotated_java_files.py | |
parent | c949b536bb1970c55a8a3edc911d9fb7f31c484a (diff) |
Increase timeout for flaky WeakHashMap.test_keySet()
This CTS test has been flaky since at least Nov 2015 because weak
references were not always cleared within the 5sec that the test
claims as an upper bound for the time until "the ReferenceQueue
daemon will enqueue the cleared rereferences".
It looks like Daemons.MAX_FINALIZE_NANOS is likely the value the
test is talking about, but that value is 10 seconds. Further,
there are some possible races such as WeakHashMapTest evaluating
entrySet.size() before checking elapsed time.
Therefore, this CL increases the amount of time the test waits
at most to 10.5 seconds (Daemons.MAX_FINALIZE_NANOS plus 500msec
margin).
Bug: 25437292
Test: WeakHashMapTest
Change-Id: I99dc76106e7a95da99f04db3bc1ed1ed6f738d97
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions