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

Skip to content
Commit 7a3a563a authored by Jack He's avatar Jack He
Browse files

Test: Fix flaky PhonePolicyTest and ActiveDeviceManagerTest

* PhonePolicyTest needs to stub A2dpService.connect() and
  HeadsetService.connect() methods for it to pass stably
* Fixed a miscounted frequency for HeadsetService.setPriority()
  in PhonePolicyTes.testDisconnectNoAutoConnect().
* Fixed a race condition in ActiveDeviceManagerTest where dependency
  calls such as HearingAidService.setActiveDevice() happens before
  internal state such as mHearingAidActiveDevice is set. The fix
  requires ActiveDeviceManagerTest to wait for ActiveDeviceManager's
  handler looper to finish executing scheduled tasks before checking any
  internal states

Bug: 80437170
Test: run PhonePolicyTest, ActiveDeviceManagerTest 100 times
Change-Id: Iece11914c4c7f7c54abcbf78caa7ddd2ba1d740f
(cherry picked from commit 4afa9552fd6fa0056977388661ec22a28bee1c7f)
parent c5f4a214
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment