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

Commit 44dfbe67 authored by Jacky Wang's avatar Jacky Wang
Browse files

Ignore catalyst test in DisplayScreenTest

Bug: 373177618
Bug: 368359268
Flag: EXEMPT fix test
Test: atest
Change-Id: I8de8468f53f4b9ec2c66e8e836bf9cf9072e6e63
parent 6324c21d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ import com.android.settings.flags.Flags
import com.android.settings.testutils.FakeFeatureFactory
import com.android.settingslib.preference.CatalystScreenTestCase
import com.google.common.truth.Truth.assertThat
import org.junit.Ignore
import org.junit.Test
import org.junit.runner.RunWith
import org.mockito.ArgumentMatchers.anyInt
@@ -65,6 +66,7 @@ class DisplayScreenTest : CatalystScreenTestCase() {
        assertThat(preferenceScreenCreator.isAvailable(contextWrapper)).isFalse()
    }

    @Ignore("robolectric.createActivityContexts cause other test failure")
    override fun migration() {
        // avoid UnsupportedOperationException when getDisplay from context
        System.setProperty("robolectric.createActivityContexts", "true")