Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
sebaslogen committed Jan 26, 2024
1 parent 6146f83 commit 6dde2c2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class ClearScopedViewModelTests : ComposeTestUtils {
val finalAmountOfViewModelsCleared = viewModelsClearedGloballySharedCounter.get()

// Then the Hilt scoped ViewModel from the second screen is cleared
assert(finalAmountOfViewModelsCleared == initialAmountOfViewModelsCleared + 2) {
assert(finalAmountOfViewModelsCleared == initialAmountOfViewModelsCleared + 3) {
"The amount of FakeInjectedViewModels that were cleared after back navigation ($finalAmountOfViewModelsCleared) " +
"was not as high as expected compared to the amount before navigating ($initialAmountOfViewModelsCleared)"
}
Expand Down

0 comments on commit 6dde2c2

Please sign in to comment.