Skip to content

Commit

Permalink
Fix a failing test for ZoomableState#isAnimationRunning
Browse files Browse the repository at this point in the history
  • Loading branch information
saket committed Jan 1, 2025
1 parent 1933089 commit 416ad8b
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -375,9 +375,11 @@ class ZoomableTest {

animatedZoomTriggers.trySend(0.5f)
rule.waitUntil {
state.contentTransformation.scaleMetadata.userZoom == 0.5f
state.contentTransformation.scaleMetadata.userZoom == 1f
}
rule.runOnIdle {
assertThat(recordedValues.removeAll()).containsOnly(true, false)
}
assertThat(recordedValues.removeAll()).containsOnly(true, false)
}

@Test fun prevent_precision_errors_during_settle_animation() {
Expand Down

0 comments on commit 416ad8b

Please sign in to comment.