Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

Fix test flakiness of SplashScreenExceptionListTest

The listener map of DeviceConfig uses OnPropertiesChangedListener
as key, so when iterating the map for dispatching change event,
the order may not be the same as the order of adding the listener.
Then the test may fail because the CountDownLatch counts before the
listener of SplashScreenExceptionList is called.

This change removes the additional test listener by overriding the
method which needs to be waited until it is called, which also
eliminates the dependency of listener callback order.

Fixes: 212660691
Test: atest SplashScreenExceptionListTest

Change-Id: I405932729d26f43428c70f5e282aeb8ae82d81c8
parent d29ddfd1
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