change: Remove unnecessary `constructor` keyword
This commit is contained in:
parent
4ddd23dda6
commit
01887d427b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue