summaryrefslogtreecommitdiff
path: root/format-common
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2023-05-12 18:06:47 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2023-05-12 18:06:47 +0530
commita76da935cdb43e0f99513ed6f3468bd0835a5137 (patch)
tree50e9fc59fd09f2de9ac608b8907d87889c083fd2 /format-common
parentb9abf3ef43e3749c79c11254c575a5ad3af0a08f (diff)
feat: remove unnecessary CoroutineTestRule
Diffstat (limited to 'format-common')
-rw-r--r--format-common/build.gradle.kts1
-rw-r--r--format-common/src/test/kotlin/app/passwordstore/data/passfile/PasswordEntryTest.kt6
2 files changed, 0 insertions, 7 deletions
diff --git a/format-common/build.gradle.kts b/format-common/build.gradle.kts
index 3377eb86..01009ab8 100644
--- a/format-common/build.gradle.kts
+++ b/format-common/build.gradle.kts
@@ -12,7 +12,6 @@ dependencies {
implementation(libs.dagger.hilt.core)
implementation(libs.thirdparty.commons.codec)
implementation(libs.thirdparty.uri)
- testImplementation(projects.coroutineUtilsTesting)
testImplementation(libs.bundles.testDependencies)
testImplementation(libs.kotlin.coroutines.test)
testImplementation(libs.testing.turbine)
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) =