mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
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));
|
||||
|
||||
Reference in New Issue
Block a user