From 32fcdad91696884f566ed7838415bba2d391fa4a Mon Sep 17 00:00:00 2001 From: NIkita Fedrunov Date: Fri, 23 Dec 2022 13:19:35 +0100 Subject: [PATCH] fixed compilation error --- .../im/vector/app/features/home/RoomsListViewModelTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vector/src/test/java/im/vector/app/features/home/RoomsListViewModelTest.kt b/vector/src/test/java/im/vector/app/features/home/RoomsListViewModelTest.kt index e2fef25aba..a601505d6c 100644 --- a/vector/src/test/java/im/vector/app/features/home/RoomsListViewModelTest.kt +++ b/vector/src/test/java/im/vector/app/features/home/RoomsListViewModelTest.kt @@ -18,7 +18,6 @@ package im.vector.app.features.home import android.widget.ImageView import androidx.arch.core.executor.testing.InstantTaskExecutorRule -import arrow.core.Option import com.airbnb.mvrx.test.MavericksTestRule import im.vector.app.R import im.vector.app.core.platform.StateView @@ -45,6 +44,7 @@ import org.junit.Test import org.matrix.android.sdk.api.query.SpaceFilter import org.matrix.android.sdk.api.session.getUserOrDefault import org.matrix.android.sdk.api.session.room.model.Membership +import org.matrix.android.sdk.api.util.Optional import org.matrix.android.sdk.api.util.toMatrixItem import org.matrix.android.sdk.flow.FlowSession @@ -72,7 +72,7 @@ class RoomsListViewModelTest { mockkStatic("org.matrix.android.sdk.flow.FlowSessionKt") fakeFLowSession = fakeSession.givenFlowSession() - every { fakeSpaceStateHandler.getSelectedSpaceFlow() } returns flowOf(Option.empty()) + every { fakeSpaceStateHandler.getSelectedSpaceFlow() } returns flowOf(Optional.empty()) every { fakeSpaceStateHandler.getCurrentSpace() } returns null every { fakeFLowSession.liveRoomSummaries(any(), any()) } returns flowOf(emptyList())