From c1c2a5bce57604f26f98bce17d3a6854ad809257 Mon Sep 17 00:00:00 2001 From: Alexander Kawrykow Date: Thu, 20 Dec 2018 09:32:55 -0800 Subject: [PATCH] Increase idle timeout for react app tests Summary: Some snapshot tests (particularly those for which there is a lot of test data) can still timeout with "Timed out waiting for bridge and UI idle!" error. Increasing the timeout to 4 minutes from 2 minutes Differential Revision: D13523429 fbshipit-source-id: 18f04ea93e342d123eea4c4cd812bd3b1cc85ee0 --- .../java/com/facebook/react/testing/ReactAppTestActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactAppTestActivity.java b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactAppTestActivity.java index 3dce0330d0b..8f8a40ffb0b 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactAppTestActivity.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactAppTestActivity.java @@ -53,7 +53,7 @@ public class ReactAppTestActivity extends FragmentActivity private static final String DEFAULT_BUNDLE_NAME = "AndroidTestBundle.js"; private static final int ROOT_VIEW_ID = 8675309; // we need a bigger timeout for CI builds because they run on a slow emulator - private static final long IDLE_TIMEOUT_MS = 120000; + private static final long IDLE_TIMEOUT_MS = 240000; private final CountDownLatch mDestroyCountDownLatch = new CountDownLatch(1); private CountDownLatch mLayoutEvent = new CountDownLatch(1); private @Nullable ReactBridgeIdleSignaler mBridgeIdleSignaler;