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

Commit 2c1a253f authored by Lorenzo Colitti's avatar Lorenzo Colitti
Browse files

Fix one of the breakages of ConnectivityServiceTest in master.

Change-Id: I31c7a019383fa589beb1572486700e54edfb97e8
parent 3c9b7338
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -591,6 +591,12 @@ public class ConnectivityServiceTest extends AndroidTestCase {
    public void setUp() throws Exception {
        super.setUp();

        // InstrumentationTestRunner prepares a looper, but AndroidJUnitRunner does not.
        // http://b/25897652 .
        if (Looper.myLooper() == null) {
            Looper.prepare();
        }

        mServiceContext = new MockContext(getContext());
        mService = new WrappedConnectivityService(mServiceContext,
                mock(INetworkManagementService.class),