Increased timeouts and retries for instrumentation tests

Summary:
Tests fail quite often but retries seem to help.
Closes https://github.com/facebook/react-native/pull/7537

Differential Revision: D3295833

fbshipit-source-id: e74be5d62b7fb9c1859477e51bf18fe3d1d25ce4
This commit is contained in:
Konstantin Raev 2016-05-12 17:32:14 -07:00 committed by Facebook Github Bot 9
parent b4e970f6c3
commit 588183b166
2 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ test:
- ./gradlew :ReactAndroid:assembleDebugAndroidTest
# Android e2e test
- node ./scripts/run-ci-e2e-tests.js --android --js --retries 3
- node ./scripts/run-ci-e2e-tests.js --android --js --retries 5
# testing docs generation is not broken
- cd website && node ./server/generate.js

View File

@ -42,7 +42,7 @@ let exitCode = 0;
testClasses.forEach((testClass) => {
if (tryExecNTimes(
() => {
exec('sleep 5s');
exec('sleep 10s');
return exec(`./scripts/run-android-instrumentation-tests.sh ${argv.package} ${testClass}`).code;
},
numberOfRetries)) {