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:
parent
b4e970f6c3
commit
588183b166
|
@ -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
|
||||
|
|
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue