commit | 7b422dc1a1a4fdfac47c38587197e1d478981e0b | [log] [tgz] |
---|---|---|
author | Michal Brzezinski <brzezinski@google.com> | Tue Jan 18 17:58:21 2022 +0000 |
committer | Michal Brzezinski <brzezinski@google.com> | Tue Jan 18 17:58:21 2022 +0000 |
tree | 508469d12813b3bc14e1fa7478a56286aa7b22bc | |
parent | 0eebf348e4c413a5d134802ba180af639a3395f4 [diff] |
Fixing ControlsRequestDialogTest ControlsRequestDialogTest was flaky because sometimes mocks were cleared (in SysuiTestCase's @AfterClass) before Activity was fully destroyed. The solution here is to not use mock for BroadcastDispatcher and instead use FakeBroadcastDispatcher which just waits to be used. Fixes: 214562366 Test: run ControlsRequestDialogTest 20 times locally without any failures Change-Id: I7d7b932fe175b1e65c7ed21507b0c67a5f39dcfb