From a6a5ef4acc12ced6ecad0311e68d5deb74d39dae Mon Sep 17 00:00:00 2001 From: Konstantin Raev Date: Thu, 14 Apr 2016 06:11:42 -0700 Subject: [PATCH] added cache prepare step for packager in ios e2e test Summary: Closes https://github.com/facebook/react-native/pull/6977 Differential Revision: D3178986 fb-gh-sync-id: 642b96fefcc506d1f8ada588ed79e5de48829338 fbshipit-source-id: 642b96fefcc506d1f8ada588ed79e5de48829338 --- scripts/run-ci-e2e-tests.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/run-ci-e2e-tests.js b/scripts/run-ci-e2e-tests.js index 9c7af063e..45c3ab15a 100644 --- a/scripts/run-ci-e2e-tests.js +++ b/scripts/run-ci-e2e-tests.js @@ -157,6 +157,9 @@ if (args.indexOf('--ios') !== -1) { env: packagerEnv }); SERVER_PID = packagerProcess.pid; + exec('sleep 15s'); + // prepare cache to reduce chances of possible red screen "Can't fibd variable __fbBatchedBridge..." + exec('response=$(curl --write-out %{http_code} --silent --output /dev/null localhost:8081/index.ios.bundle?platform=ios&dev=true)'); echo(`Starting packager server, ${SERVER_PID}`); echo('Executing ios e2e test'); if (exec('xctool -scheme EndToEndTest -sdk iphonesimulator test').code) {