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

Skip to content
Commit 45a0ff7a authored by Rupesh Bansal's avatar Rupesh Bansal
Browse files

Fixed the failing tests in com.android.server.dreams

We were seeing the issue where
DreamManagerServiceMockingTest::testSettingsQueryUserChange was failing because of
lack of a permission, but when that permission was given, other tests in
the same module started to fail. The issue was we were not waiting for
the handler thread to be successfully executed before moving onto the
next test. This is now being fixed using a TestHandler. However, given
DreamManagerService is using DreamHandler, we had to change the handler
type in DreamManagerService to Handler. This means we might face an
issue with this test if we were to add a new utility in DreamHandler,
but given we have not seen any such usecases soo far, lets defer to
solving for that scenario for the future.

Test: atest com.android.server.dreams
Bug: 293443309
Change-Id: I19d235021077ca39cf14d0593ac5a8f5aa0f98a9
parent 4c1bdc28
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