From a76da935cdb43e0f99513ed6f3468bd0835a5137 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Fri, 12 May 2023 18:06:47 +0530 Subject: feat: remove unnecessary CoroutineTestRule --- .../kotlin/app/passwordstore/data/passfile/PasswordEntryTest.kt | 6 ------ 1 file changed, 6 deletions(-) (limited to 'format-common/src/test') diff --git a/format-common/src/test/kotlin/app/passwordstore/data/passfile/PasswordEntryTest.kt b/format-common/src/test/kotlin/app/passwordstore/data/passfile/PasswordEntryTest.kt index 73e55b34..865a13c1 100644 --- a/format-common/src/test/kotlin/app/passwordstore/data/passfile/PasswordEntryTest.kt +++ b/format-common/src/test/kotlin/app/passwordstore/data/passfile/PasswordEntryTest.kt @@ -7,7 +7,6 @@ package app.passwordstore.data.passfile import app.cash.turbine.Event import app.cash.turbine.test -import app.passwordstore.test.CoroutineTestRule import app.passwordstore.util.time.TestUserClock import app.passwordstore.util.time.UserClock import app.passwordstore.util.totp.UriTotpFinder @@ -18,16 +17,11 @@ import kotlin.test.assertNotNull import kotlin.test.assertNull import kotlin.test.assertTrue import kotlin.time.Duration.Companion.seconds -import kotlin.time.ExperimentalTime -import kotlinx.coroutines.ExperimentalCoroutinesApi import kotlinx.coroutines.delay import kotlinx.coroutines.test.runTest -import org.junit.Rule -@OptIn(ExperimentalCoroutinesApi::class, ExperimentalTime::class) class PasswordEntryTest { - @get:Rule val coroutineTestRule: CoroutineTestRule = CoroutineTestRule() private val totpFinder = UriTotpFinder() private fun makeEntry(content: String, clock: UserClock = fakeClock) = -- cgit v1.2.3