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
This commit is contained in:
Alexander Kawrykow
2018-12-20 09:32:55 -08:00
committed by Facebook Github Bot
parent 5d06c7495d
commit c1c2a5bce5

View File

@@ -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;