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

Commit 8d9b93cb authored by Kweku Adams's avatar Kweku Adams
Browse files

Remove service before adding test mock.

Bug: 223101827
Change-Id: I45788f4ca7add353135ff3af73de2b5f4997ff14
Test: N/A
parent 0eaf43c7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -489,6 +489,7 @@ public class AppStandbyControllerTests {

    @Before
    public void setUp() throws Exception {
        LocalServices.removeServiceForTest(UsageStatsManagerInternal.class);
        LocalServices.addService(
                UsageStatsManagerInternal.class, mock(UsageStatsManagerInternal.class));
        MyContextWrapper myContext = new MyContextWrapper(InstrumentationRegistry.getContext());