mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-23 11:57:46 +08:00
Stabilized TestIdTestApp integration test
Summary: - TestIdTestModule instrumentation tests is responsible for too many occasional crashes, e.g. https://circleci.com/gh/facebook/react-native/7054. This should fix the problem (will monitor over next week) - Made file naming more consistent - 5 retries don't make e2e tests more stable, reduced back to 3 but I need to investigate how to make it more reliable Closes https://github.com/facebook/react-native/pull/7784 Differential Revision: D3354444 fbshipit-source-id: d058362edbec09522a4828998e01988a82a74487
This commit is contained in:
committed by
Facebook Github Bot 0
parent
a96fcc7ce1
commit
7ca8e0e8b1
@@ -42,8 +42,10 @@ let exitCode = 0;
|
||||
testClasses.forEach((testClass) => {
|
||||
if (tryExecNTimes(
|
||||
() => {
|
||||
echo(`Starting ${testClass}`);
|
||||
// any faster means Circle CI crashes
|
||||
exec('sleep 10s');
|
||||
return exec(`./scripts/run-android-instrumentation-tests.sh ${argv.package} ${testClass}`).code;
|
||||
return exec(`./scripts/run-instrumentation-tests-via-adb-shell.sh ${argv.package} ${testClass}`).code;
|
||||
},
|
||||
numberOfRetries)) {
|
||||
echo(`${testClass} failed ${numberOfRetries} times`);
|
||||
Reference in New Issue
Block a user