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

Commit 5df6e71e authored by David Duarte's avatar David Duarte
Browse files

HapClientTest: Don't prepare a looper on the test thread

This is not used and this is dangerous as this looper will never
run any tasks.

Bug: 324268843
Test: atest HapClientTest
Flag: Exempt, test only change
Change-Id: I89b188d8aaa66a10e06b7d65417212f7d726f7a9
parent 73cc28d6
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -122,10 +122,6 @@ public class HapClientTest {
        // Set up mocks and test assets
        MockitoAnnotations.initMocks(this);

        if (Looper.myLooper() == null) {
            Looper.prepare();
        }

        HapClientStateMachine.sConnectTimeoutMs = TIMEOUT_MS;

        TestUtils.setAdapterService(mAdapterService);