From e48d3efeebcfce5037a97f387d7a16d98a6f9800 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Mart=C3=ADn?= Date: Wed, 2 Oct 2024 10:50:58 +0200 Subject: [PATCH] Fix tests --- .../android/features/roomlist/impl/RoomListPresenterTest.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/features/roomlist/impl/src/test/kotlin/io/element/android/features/roomlist/impl/RoomListPresenterTest.kt b/features/roomlist/impl/src/test/kotlin/io/element/android/features/roomlist/impl/RoomListPresenterTest.kt index c77f59a0a8..8264263760 100644 --- a/features/roomlist/impl/src/test/kotlin/io/element/android/features/roomlist/impl/RoomListPresenterTest.kt +++ b/features/roomlist/impl/src/test/kotlin/io/element/android/features/roomlist/impl/RoomListPresenterTest.kt @@ -236,7 +236,9 @@ class RoomListPresenterTest { @Test fun `present - handle DismissRecoveryKeyPrompt`() = runTest { - val encryptionService = FakeEncryptionService() + val encryptionService = FakeEncryptionService().apply { + recoveryStateStateFlow.emit(RecoveryState.DISABLED) + } val roomListService = FakeRoomListService().apply { postAllRoomsLoadingState(RoomList.LoadingState.Loaded(1)) }