Fix failing CircleCI test for touch event timestamp

Summary:
Timestamp is computed differently now and uses system millis as the basis for a monotonic clock. Updating this fixes tests.

Changelog: [Internal]

Reviewed By: RSNara

Differential Revision: D26739611

fbshipit-source-id: 4908da68e1c126ea2b0772aaf408d892798549aa
This commit is contained in:
Joshua Gross
2021-03-01 18:13:02 -08:00
committed by Facebook GitHub Bot
parent 71ccc61802
commit 5772c4947d
@@ -115,7 +115,7 @@ public class RootViewTest {
rootView.startReactApplication(instanceManager, "");
rootView.simulateAttachForTesting();
long ts = SystemClock.uptimeMillis();
long ts = SystemClock.currentTimeMillis();
// Test ACTION_DOWN event
rootView.onTouchEvent(MotionEvent.obtain(100, ts, MotionEvent.ACTION_DOWN, 0, 0, 0));