Fix compilation warning in tests.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user