You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our QuestionnaireViewModelTest is passing tests that should be failing (the worst kind).
The code is making a cast that should never succeed:
viewModel.questionnaireStateFlow.value as DisplayMode.EditMode
but that is being called inside viewModel.runViewModelBlocking, which seems to run after the test completes. The custom function runs on the main dispatcher, but that does not block the test from completing.
Our
QuestionnaireViewModelTest
is passing tests that should be failing (the worst kind).The code is making a cast that should never succeed:
but that is being called inside viewModel.runViewModelBlocking, which seems to run after the test completes. The custom function runs on the main dispatcher, but that does not block the test from completing.
https://github.com/google/android-fhir/blob/master/datacapture/src/test/java/com/google/android/fhir/datacapture/QuestionnaireViewModelTest.kt#L4043-L4057
The text was updated successfully, but these errors were encountered: