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

Commit 0da99ca2 authored by Anton Potapov's avatar Anton Potapov
Browse files

Fake configuration before collecting the changes

Flag: EXEMPT TEST_ONLY
Test: atest VolumePanelViewModelTest
Fixes: 432899054
Change-Id: I980d83b2e538417ca646cb15398e4efb5fa2af0a
parent 5ba95e1b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -95,10 +95,10 @@ class VolumePanelViewModelTest : SysuiTestCase() {
    @Test
    fun orientationChanges_panelOrientationChanges() =
        kosmos.runTest {
            val volumePanelState by collectLastValue(underTest.volumePanelState)
            testableResources.overrideConfiguration(
                Configuration().apply { orientation = Configuration.ORIENTATION_PORTRAIT }
            )
            val volumePanelState by collectLastValue(underTest.volumePanelState)
            assertThat(volumePanelState!!.orientation).isEqualTo(Configuration.ORIENTATION_PORTRAIT)

            fakeConfigurationController.onConfigurationChanged(