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

Commit 30613de7 authored by Julia Reynolds's avatar Julia Reynolds
Browse files

Stop running code after the tests end

it makes mocks angry

Test: NotificationConversationInfoTest
Flag: EXEMPT FLAG-ONLY
Fixes: 404883183
Change-Id: Ie2153ec42584da3d2031dc5d2fc62fcc471a5a32
parent f6ab114d
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -28,6 +28,8 @@ import static android.print.PrintManager.PRINT_SPOOLER_PACKAGE_NAME;
import static android.view.View.GONE;
import static android.view.View.VISIBLE;

import static com.android.systemui.statusbar.notification.stack.StackStateAnimator.ANIMATION_DURATION_STANDARD;

import static com.google.common.truth.Truth.assertThat;

import static junit.framework.Assert.assertEquals;
@@ -102,6 +104,7 @@ import com.android.systemui.statusbar.notification.row.icon.NotificationIconStyl
import com.android.systemui.wmshell.BubblesManager;
import com.android.systemui.wmshell.BubblesTestActivity;

import org.junit.After;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
@@ -280,6 +283,12 @@ public class NotificationConversationInfoTest extends SysuiTestCase {
        when(mPeopleSpaceWidgetManager.requestPinAppWidget(any(), any())).thenReturn(true);
    }

    @After
    public void tearDown() {
        mTestableLooper.moveTimeForward(ANIMATION_DURATION_STANDARD);
        mTestableLooper.processAllMessages();
    }

    private void doStandardBind() {
        mNotificationInfo.bindNotification(
                mShortcutManager,