Fix compilation warning in tests.
This commit is contained in:
parent
182511d92c
commit
69ac38ed10
2 changed files with 1 additions and 3 deletions
|
|
@ -94,11 +94,10 @@ class AuthenticationExceptionMappingTests {
|
||||||
hasMessageThat().isEqualTo(message)
|
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()
|
val authenticationException = throwable.mapAuthenticationException()
|
||||||
assertThat(authenticationException).isInstanceOf(AuthenticationException.OidcError::class.java)
|
assertThat(authenticationException).isInstanceOf(AuthenticationException.OidcError::class.java)
|
||||||
assertThat((authenticationException as? AuthenticationException.OidcError)?.type).isEqualTo(type)
|
assertThat((authenticationException as? AuthenticationException.OidcError)?.type).isEqualTo(type)
|
||||||
assertThat(authenticationException.message).isEqualTo(message)
|
assertThat(authenticationException.message).isEqualTo(message)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -191,7 +191,6 @@ class RoomSummaryListProcessorTests {
|
||||||
fun `Clear removes all the entries`() = runTest {
|
fun `Clear removes all the entries`() = runTest {
|
||||||
summaries.value = listOf(aRoomSummaryFilled(roomId = A_ROOM_ID), aRoomSummaryFilled(A_ROOM_ID_2))
|
summaries.value = listOf(aRoomSummaryFilled(roomId = A_ROOM_ID), aRoomSummaryFilled(A_ROOM_ID_2))
|
||||||
val processor = createProcessor()
|
val processor = createProcessor()
|
||||||
val index = 0
|
|
||||||
|
|
||||||
// Start processing updates
|
// Start processing updates
|
||||||
processor.postEntries(listOf())
|
processor.postEntries(listOf())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue