mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Fix compilation warning in tests.
This commit is contained in:
+1
-2
@@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
-1
@@ -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())
|
||||||
|
|||||||
Reference in New Issue
Block a user