Fix compilation warning in tests.
This commit is contained in:
parent
096d57517e
commit
70cdb4a2fc
2 changed files with 1 additions and 3 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue