diff options
author | Yunfan Chen <yunfanc@google.com> | 2019-02-15 20:14:14 +0900 |
---|---|---|
committer | Yunfan Chen <yunfanc@google.com> | 2019-02-19 11:05:32 +0900 |
commit | 968cc7f333e33d6488c6d6c0859c7109c101b1e9 (patch) | |
tree | 37da8e5ceec8ae6f34fc90b85ffc9b60eef4210f /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 2f040befbd02291e4e1e79574baf2fbe804cd0cd (diff) |
Fix flaky TaskStackChangedListenerTest
The test was flaky is because the activity can be killed before the test
finished running.
The test activity would be killed in onPostResumed and the latch count
down is happening in onResumed. After that, the test was trying to
access task ID via the activity. It is possible that when accessing
task ID, the activity is no longer there.
To fix that, keep the task ID when creating the activity in the test.
This will significantly reduce, if not eliminate, the flakiness inside.
Mark as pre-submit candidate to be monitored.
Test: atest TaskStackChangedListenerTest
Bug: 119893767
Change-Id: I3826282b395169097cb3496e47557d622a8fc856
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions