Skip to content

Commit

Permalink
Unregister idling resource at constructir time
Browse files Browse the repository at this point in the history
  • Loading branch information
KovalevAndrey committed May 8, 2024
1 parent 8d86462 commit f6e7911
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,15 @@ class EspressoServerRunnerTest {

init {
context.driverContextChangeListener = listener
if (context.currentStrategyType == DriverContext.StrategyType.COMPOSE) {
composeIdlingResource?.let {
composeTestRule.registerIdlingResource(composeIdlingResource)
}
} else {
composeIdlingResource?.let {
composeTestRule.unregisterIdlingResource(composeIdlingResource)
}
}
}


Expand Down

0 comments on commit f6e7911

Please sign in to comment.