Fixes lint errors

This commit is contained in:
ericdecanini 2022-03-04 14:53:16 +01:00
parent 92f87a3a5a
commit 275505b3e6
2 changed files with 3 additions and 2 deletions

View file

@ -47,7 +47,7 @@ class DefaultSessionParamsCreatorTest : DefaultSessionParamsCreatorTestBase() {
@Test
fun `given credentials homeServerUri is equal to homeServerConnectionConfig, when create, then do not validate`() = runBlockingTest {
val homeServerConnectionConfigWithCredentialsUri = homeServerConnectionConfig.copy(homeServerUriBase = discoveryWithHomeServer.getHomeServerUri())
val output = sessionParamsCreator.create(credentialsWithHomeServer, homeServerConnectionConfigWithCredentialsUri , LoginType.UNKNOWN)
val output = sessionParamsCreator.create(credentialsWithHomeServer, homeServerConnectionConfigWithCredentialsUri, LoginType.UNKNOWN)
fakeIsValidClientServerApiTask.verifyNoExecution()
assertExpectedSessionParamsWithHomeServer(output)

View file

@ -35,8 +35,9 @@ class LoginTypeTest {
val types = LoginType.values()
types.forEach { type ->
if (type != LoginType.UNKNOWN)
if (type != LoginType.UNKNOWN) {
LoginType.fromValue(type.value) shouldNotBeEqualTo LoginType.UNKNOWN
}
}
}
}