diff --git a/core/testing/src/main/kotlin/app/pachli/core/testing/rules/MainCoroutineRule.kt b/core/testing/src/main/kotlin/app/pachli/core/testing/rules/MainCoroutineRule.kt index 1750bd88e..5c2f29d80 100644 --- a/core/testing/src/main/kotlin/app/pachli/core/testing/rules/MainCoroutineRule.kt +++ b/core/testing/src/main/kotlin/app/pachli/core/testing/rules/MainCoroutineRule.kt @@ -27,7 +27,7 @@ import org.junit.rules.TestWatcher import org.junit.runner.Description @OptIn(ExperimentalCoroutinesApi::class) -class MainCoroutineRule constructor(private val dispatcher: TestDispatcher = UnconfinedTestDispatcher()) : TestWatcher() { +class MainCoroutineRule(private val dispatcher: TestDispatcher = UnconfinedTestDispatcher()) : TestWatcher() { override fun starting(description: Description) { super.starting(description) Dispatchers.setMain(dispatcher)