Skip to content

Commit b2c1c11

Browse files
Update MainDispatcherRule.kt
Updated MainDispatcherRule parameter accessibility to private because its only needs to be accessible inside that class.
1 parent 3ccacba commit b2c1c11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/testing/src/main/kotlin/com/google/samples/apps/nowinandroid/core/testing/util/MainDispatcherRule.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import org.junit.runner.Description
3030
* for the duration of the test.
3131
*/
3232
class MainDispatcherRule(
33-
val testDispatcher: TestDispatcher = UnconfinedTestDispatcher(),
33+
private val testDispatcher: TestDispatcher = UnconfinedTestDispatcher(),
3434
) : TestWatcher() {
3535
override fun starting(description: Description) {
3636
Dispatchers.setMain(testDispatcher)

0 commit comments

Comments
 (0)