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

Commit 6f070211 authored by wilsonshih's avatar wilsonshih
Browse files

Remove the test window after the test finishes.

The remaining window can affect the rest of the tests because it won't
handle input events. This can cause an ANR error and abort the test
process.

Flag: EXEMPT bugfix
Bug: 427837652
Test: atest NotificationTemplateViewWrapperTest
Change-Id: I78c5dee11815f4413e2768797b993ad8fba1e206
parent d6b5b5cf
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -38,6 +38,7 @@ import com.android.systemui.statusbar.notification.row.wrapper.NotificationTempl
import com.android.systemui.testKosmos
import com.android.systemui.util.leak.ReferenceTestUtils.waitForCondition
import com.google.common.truth.Truth.assertThat
import org.junit.After
import org.junit.Before
import org.junit.Test
import org.junit.runner.RunWith
@@ -82,6 +83,11 @@ class NotificationTemplateViewWrapperTest : SysuiTestCase() {
        ViewUtils.attachView(root)
    }

    @After
    fun tearDown() {
        ViewUtils.detachView(root)
    }

    @Test
    fun noActionsPresent_noCrash() {
        view.removeView(actions)