From 81bf466b6c8acc720fe4b9145481d6fc581d48c3 Mon Sep 17 00:00:00 2001 From: Saket Narayan Date: Tue, 2 Jul 2024 19:41:20 -0400 Subject: [PATCH] Use correct assertions --- .../kotlin/me/saket/telephoto/zoomable/ZoomableTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zoomable-image/core/src/androidTest/kotlin/me/saket/telephoto/zoomable/ZoomableTest.kt b/zoomable-image/core/src/androidTest/kotlin/me/saket/telephoto/zoomable/ZoomableTest.kt index adafc980..8c246332 100644 --- a/zoomable-image/core/src/androidTest/kotlin/me/saket/telephoto/zoomable/ZoomableTest.kt +++ b/zoomable-image/core/src/androidTest/kotlin/me/saket/telephoto/zoomable/ZoomableTest.kt @@ -117,14 +117,14 @@ class ZoomableTest { rule.onNodeWithTag("content").performClick() rule.mainClock.advanceTimeBy(ViewConfiguration.getLongPressTimeout().toLong()) rule.runOnIdle { - check(zoomableState.real().isReadyToInteract) + check(!zoomableState.real().isReadyToInteract) assertThat(clickCount).isEqualTo(1) } // Regression test for https://github.com/saket/telephoto/issues/93 // Transformation gestures (for zooming and panning) made before the // content was ready was causing a crash. - check(zoomableState.real().isReadyToInteract) + check(!zoomableState.real().isReadyToInteract) rule.onNodeWithTag("content").performTouchInput { pinchToZoomBy(visibleSize.center / 2f) }