diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2022-06-04 14:41:52 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-04 09:11:52 +0000 |
commit | fee75104962548404ed2ffc4f6ef9c397b86683f (patch) | |
tree | 9a33007643184f72bcd98ab70d0cfc91e4e87f7e /coroutine-utils-testing | |
parent | ac94b88d870f6c589e051723cf95bfd04032949d (diff) |
Miscellaneous cleanups (#1934)
* build-logic: cleanups
* coroutine-utils-testing: cleanups
* coroutine-utils: cleanups
* crypto-common: cleanups
* crypto-pgpainless: cleanups
* format-common: cleanups
Diffstat (limited to 'coroutine-utils-testing')
-rw-r--r-- | coroutine-utils-testing/build.gradle.kts | 1 | ||||
-rw-r--r-- | coroutine-utils-testing/src/main/kotlin/dev/msfjarvis/aps/test/CoroutineTestRule.kt | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/coroutine-utils-testing/build.gradle.kts b/coroutine-utils-testing/build.gradle.kts index c4f7400b..96d87dc1 100644 --- a/coroutine-utils-testing/build.gradle.kts +++ b/coroutine-utils-testing/build.gradle.kts @@ -11,5 +11,4 @@ dependencies { implementation(projects.coroutineUtils) implementation(libs.testing.junit) implementation(libs.kotlin.coroutines.test) - api(libs.testing.turbine) } diff --git a/coroutine-utils-testing/src/main/kotlin/dev/msfjarvis/aps/test/CoroutineTestRule.kt b/coroutine-utils-testing/src/main/kotlin/dev/msfjarvis/aps/test/CoroutineTestRule.kt index fa4a2d41..58ac48c9 100644 --- a/coroutine-utils-testing/src/main/kotlin/dev/msfjarvis/aps/test/CoroutineTestRule.kt +++ b/coroutine-utils-testing/src/main/kotlin/dev/msfjarvis/aps/test/CoroutineTestRule.kt @@ -33,12 +33,12 @@ public class CoroutineTestRule( override fun unconfined(): CoroutineDispatcher = testDispatcher } - override fun starting(description: Description?) { + override fun starting(description: Description) { super.starting(description) Dispatchers.setMain(testDispatcher) } - override fun finished(description: Description?) { + override fun finished(description: Description) { super.finished(description) Dispatchers.resetMain() } |