Skip to content

Commit 62ed92f

Browse files
committed
Fix failing test after rebase.
1 parent c02f6df commit 62ed92f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

features/call/impl/src/test/kotlin/io/element/android/features/call/utils/DefaultCallWidgetProviderTest.kt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,19 @@ class DefaultCallWidgetProviderTest {
8787
}
8888
val activeRoomsHolder = ActiveRoomsHolder().apply {
8989
// A current active room with the same room id
90-
addRoom(FakeJoinedRoom(baseRoom = FakeBaseRoom(roomId = A_ROOM_ID)))
90+
addRoom(
91+
FakeJoinedRoom(
92+
baseRoom = FakeBaseRoom(roomId = A_ROOM_ID),
93+
generateWidgetWebViewUrlResult = { _, _, _, _ -> Result.success("url") },
94+
getWidgetDriverResult = { Result.success(FakeMatrixWidgetDriver()) },
95+
)
96+
)
9197
}
9298
val provider = createProvider(
9399
matrixClientProvider = FakeMatrixClientProvider { Result.success(client) },
94100
activeRoomsHolder = activeRoomsHolder
95101
)
96-
assertThat(provider.getWidget(A_SESSION_ID, A_ROOM_ID, "clientId", "languageTag", "theme").isFailure).isTrue()
102+
assertThat(provider.getWidget(A_SESSION_ID, A_ROOM_ID, "clientId", "languageTag", "theme").isSuccess).isTrue()
97103
}
98104

99105
@Test

0 commit comments

Comments
 (0)