Skip to content

Commit

Permalink
Revert idling resource changes
Browse files Browse the repository at this point in the history
  • Loading branch information
adhiamboperes committed Apr 5, 2024
1 parent 26826e2 commit 17e5ee4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,11 +237,11 @@ class ExplorationActivityTest {
testCoroutineDispatchers.registerIdlingResource()
profileTestHelper.initializeProfiles()
fakeOppiaClock.setFakeTimeMode(FakeOppiaClock.FakeTimeMode.MODE_UPTIME_MILLIS)
testCoroutineDispatchers.unregisterIdlingResource()
}

@After
fun tearDown() {
testCoroutineDispatchers.unregisterIdlingResource()
Intents.release()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ class StateFragmentTest {

@After
fun tearDown() {
testCoroutineDispatchers.unregisterIdlingResource()
Intents.release()
}

Expand Down Expand Up @@ -5046,9 +5047,7 @@ class StateFragmentTest {
Intents.init()
setUpTestApplicationComponent()
testCoroutineDispatchers.registerIdlingResource()
profileTestHelper.initializeProfiles().also {
testCoroutineDispatchers.unregisterIdlingResource()
}
profileTestHelper.initializeProfiles()

// Initialize Glide such that all of its executors use the same shared dispatcher pool as the
// rest of Oppia so that thread execution can be synchronized via Oppia's test coroutine
Expand Down

0 comments on commit 17e5ee4

Please sign in to comment.