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

Commit 9e935a83 authored by Hunsuk Choi's avatar Hunsuk Choi
Browse files

Remove a flaky test temporarily

Bug: 319995092
Test: atest DomainSelectionControllerTest
Change-Id: I951a1cf2c971446e32dd8cb17bb46953918a5a6e
parent f38bf26b
Loading
Loading
Loading
Loading
+0 −18
Original line number Diff line number Diff line
@@ -246,24 +246,6 @@ public class DomainSelectionControllerTest extends TelephonyTest {
        verify(mMockContext, times(1)).bindService(any(), any(), anyInt());
    }

    /**
     * Ensure that calling unbind stops automatic rebind from occurring.
     */
    @SmallTest
    @Test
    public void testUnbindCauseAutoBindCancelAfterBinderDied() throws RemoteException {
        ServiceConnection conn = bindAndConnectService();

        conn.onBindingDied(null /*null*/);
        mTestController.unbind();

        long delay = mTestController.getBindDelay();
        waitForHandlerActionDelayed(mHandler, delay, 2 * delay);

        // Unbind should stop the autobind from occurring.
        verify(mMockContext, times(1)).bindService(any(), any(), anyInt());
    }

    private void bindAndNullServiceError() {
        ServiceConnection connection = bindService(mTestComponentName);
        connection.onNullBinding(mTestComponentName);