Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Issue #12230: Speculative fix for test failures in PromptFeatureTest
Browse files Browse the repository at this point in the history
  • Loading branch information
jonalmeida authored and mergify[bot] committed Jun 15, 2022
1 parent 576d193 commit a76c3fc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ class MainCoroutineRule(val testDispatcher: TestDispatcher = UnconfinedTestDispa
val scope by lazy { TestScope(testDispatcher) }

override fun starting(description: Description) {
super.starting(description)
Dispatchers.setMain(testDispatcher)
super.starting(description)
}

override fun finished(description: Description) {
super.finished(description)
Dispatchers.resetMain()
super.finished(description)
}
}

0 comments on commit a76c3fc

Please sign in to comment.