Skip to content

Commit 2dfedfe

Browse files
authored
Fix flaky rotation test (#2476)
1 parent d6dbf7b commit 2dfedfe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/GestureTests/RotateGesture.test.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ final class RotateGestureTestCase: GestureTestCase {
99

1010
try eventGenerator.fingerRotate([.rightThumb, .rightIndex],
1111
angle: -90.0 * .pi / 180.0,
12-
duration: Constants.pinchDuration)
12+
duration: Constants.pinchDuration * 2)
1313

1414
XCTAssertTrue(mapView.camera.cameraAnimators.isEmpty)
15-
XCTAssertGreaterThanOrEqual(mapView.mapboxMap.cameraState.bearing, 70)
15+
XCTAssertGreaterThanOrEqual(mapView.mapboxMap.cameraState.bearing, 80)
1616
}
1717
}

0 commit comments

Comments
 (0)