Skip to content

Commit

Permalink
Update MainDispatcherRule.kt
Browse files Browse the repository at this point in the history
Updated MainDispatcherRule parameter accessibility to private because its only needs to be accessible inside that class.
  • Loading branch information
mariomanhique authored Nov 3, 2023
1 parent 3ccacba commit b2c1c11
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import org.junit.runner.Description
* for the duration of the test.
*/
class MainDispatcherRule(
val testDispatcher: TestDispatcher = UnconfinedTestDispatcher(),
private val testDispatcher: TestDispatcher = UnconfinedTestDispatcher(),
) : TestWatcher() {
override fun starting(description: Description) {
Dispatchers.setMain(testDispatcher)
Expand Down

0 comments on commit b2c1c11

Please sign in to comment.