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 --- format-common/build.gradle.kts | 1 - .../kotlin/app/passwordstore/data/passfile/PasswordEntryTest.kt | 6 ------ 2 files changed, 7 deletions(-) (limited to 'format-common') 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) = -- cgit v1.2.3