Skip to content
Commit 67983a91 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Fix flakiness of testTaskChangeCallBacks

The test verifies that there is no task removed event before the
test activity is finished. But the task launched by previous test
may be removed when running the current test because the destruction
of activity is not done immediately. That causes the assertion of
task removed event count to fail.

So just only count the event after the current test activity is
started to avoid the noise.

Bug: 130388819
Test: TaskStackChangedListenerTest#testTaskChangeCallBacks
Change-Id: I742cb2f2344a42483af54ecd98fff5a1038900ff
parent 1e465216
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment