Ignore tests with broken mocks in APIs < 30. It looks like a mockk issue.
This commit is contained in:
parent
b468a9da33
commit
58ea816cae
|
@ -27,6 +27,7 @@ import androidx.biometric.BiometricManager.BIOMETRIC_SUCCESS
|
||||||
import androidx.biometric.BiometricPrompt
|
import androidx.biometric.BiometricPrompt
|
||||||
import androidx.lifecycle.lifecycleScope
|
import androidx.lifecycle.lifecycleScope
|
||||||
import androidx.test.core.app.ActivityScenario
|
import androidx.test.core.app.ActivityScenario
|
||||||
|
import androidx.test.filters.SdkSuppress
|
||||||
import androidx.test.platform.app.InstrumentationRegistry
|
import androidx.test.platform.app.InstrumentationRegistry
|
||||||
import im.vector.app.TestBuildVersionSdkIntProvider
|
import im.vector.app.TestBuildVersionSdkIntProvider
|
||||||
import im.vector.app.features.pin.lockscreen.configuration.LockScreenConfiguration
|
import im.vector.app.features.pin.lockscreen.configuration.LockScreenConfiguration
|
||||||
|
@ -200,6 +201,7 @@ class BiometricHelperTests {
|
||||||
}
|
}
|
||||||
|
|
||||||
@OptIn(ExperimentalCoroutinesApi::class)
|
@OptIn(ExperimentalCoroutinesApi::class)
|
||||||
|
@SdkSuppress(minSdkVersion = Build.VERSION_CODES.R) // Due to some issues with mockk and CryptoObject initialization
|
||||||
@Test
|
@Test
|
||||||
fun authenticateInDeviceWithIssuesShowsFallbackPromptDialog() = runTest {
|
fun authenticateInDeviceWithIssuesShowsFallbackPromptDialog() = runTest {
|
||||||
buildVersionSdkIntProvider.value = Build.VERSION_CODES.M
|
buildVersionSdkIntProvider.value = Build.VERSION_CODES.M
|
||||||
|
@ -236,6 +238,7 @@ class BiometricHelperTests {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@SdkSuppress(minSdkVersion = Build.VERSION_CODES.R) // Due to some issues with mockk and CryptoObject initialization
|
||||||
fun authenticateCreatesSystemKeyIfNeededOnSuccessOnAndroidM() = runTest {
|
fun authenticateCreatesSystemKeyIfNeededOnSuccessOnAndroidM() = runTest {
|
||||||
buildVersionSdkIntProvider.value = Build.VERSION_CODES.M
|
buildVersionSdkIntProvider.value = Build.VERSION_CODES.M
|
||||||
every { lockScreenKeyRepository.isSystemKeyValid() } returns true
|
every { lockScreenKeyRepository.isSystemKeyValid() } returns true
|
||||||
|
|
Loading…
Reference in New Issue