Fix compilation warning in tests.

This commit is contained in:
Benoit Marty
2023-10-10 10:01:01 +02:00
parent 182511d92c
commit 69ac38ed10
2 changed files with 1 additions and 3 deletions

View File

@@ -94,11 +94,10 @@ class AuthenticationExceptionMappingTests {
hasMessageThat().isEqualTo(message)
}
private inline fun assertIsOidcError(throwable: Throwable, type: String, message: String) {
private fun assertIsOidcError(throwable: Throwable, type: String, message: String) {
val authenticationException = throwable.mapAuthenticationException()
assertThat(authenticationException).isInstanceOf(AuthenticationException.OidcError::class.java)
assertThat((authenticationException as? AuthenticationException.OidcError)?.type).isEqualTo(type)
assertThat(authenticationException.message).isEqualTo(message)
}
}

View File

@@ -191,7 +191,6 @@ class RoomSummaryListProcessorTests {
fun `Clear removes all the entries`() = runTest {
summaries.value = listOf(aRoomSummaryFilled(roomId = A_ROOM_ID), aRoomSummaryFilled(A_ROOM_ID_2))
val processor = createProcessor()
val index = 0
// Start processing updates
processor.postEntries(listOf())