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
|
import org.junit.runner.Description
|
||||||
|
|
||||||
@OptIn(ExperimentalCoroutinesApi::class)
|
@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) {
|
override fun starting(description: Description) {
|
||||||
super.starting(description)
|
super.starting(description)
|
||||||
Dispatchers.setMain(dispatcher)
|
Dispatchers.setMain(dispatcher)
|
||||||
|
|
Loading…
Reference in New Issue