Skip to content

Commit

Permalink
Improve scrolling flaky test (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriellanata authored Aug 3, 2021
1 parent 6c9bf50 commit 70b37c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/HammerTests/HandTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ final class HandTests: XCTestCase {
try eventGenerator.fingerDrag(from: view.frame.center.offset(x: 40, y: 100),
to: view.frame.center.offset(x: -40, y: -100),
duration: 1)
XCTAssertEqual(view.contentOffset, CGPoint(x: 75, y: 190), accuracy: 2)
XCTAssertEqual(view.contentOffset, CGPoint(x: 75, y: 190), accuracy: 10)
}

func testScrollViewPinch() throws {
Expand Down

0 comments on commit 70b37c8

Please sign in to comment.