Skip to content

Commit

Permalink
Update kotlinx-coroutines monorepo to v1.10.1 (#3826)
Browse files Browse the repository at this point in the history
* Update kotlinx-coroutines monorepo to v1.10.1

* adjust AccordionSectionControllerTest to initialize TestLifecycleOwner after the main dispatcher is set

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Frett <daniel.frett@cru.org>
  • Loading branch information
renovate[bot] and frett authored Dec 20, 2024
1 parent 05e5994 commit 5ea02a2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ godtoolsShared = "1.1.0-SNAPSHOT"
google-auto-value = "1.11.0"
gtoSupport = "4.2.3-SNAPSHOT"
kotlin = "2.1.0"
kotlinCoroutines = "1.9.0"
kotlinCoroutines = "1.10.1"
kotlinKover = "0.7.6"
ksp = "2.1.0-1.0.29"
ktlint = "1.5.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,19 @@ class AccordionSectionControllerTest {
@get:Rule
val instantTaskExecutorRule = InstantTaskExecutorRule()

private val baseLifecycleOwner = TestLifecycleOwner()
private val eventBus = mockk<EventBus>(relaxUnitFun = true)
private val accordionController = AccordionController(
mockkToolContentAccordionBinding(),
mockk {
every { eventBus } returns this@AccordionSectionControllerTest.eventBus
every { lifecycleOwner } returns baseLifecycleOwner
every { toolState } returns State()
},
mockk()
)
private val baseLifecycleOwner by lazy { TestLifecycleOwner() }
private val eventBus: EventBus = mockk(relaxUnitFun = true)
private val accordionController by lazy {
AccordionController(
mockkToolContentAccordionBinding(),
mockk {
every { eventBus } returns this@AccordionSectionControllerTest.eventBus
every { lifecycleOwner } returns baseLifecycleOwner
every { toolState } returns State()
},
mockk()
)
}

private lateinit var controller: AccordionController.SectionController

Expand Down

0 comments on commit 5ea02a2

Please sign in to comment.