Skip to content

Commit 7502d90

Browse files
committed
retry parallel jasmine tests once to pass module load errors
1 parent 650e100 commit 7502d90

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.circleci/test.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ case $1 in
4545
set_tz
4646

4747
SUITE=$(circleci tests glob "$ROOT/test/jasmine/tests/*" | circleci tests split)
48-
npm run test-jasmine -- $SUITE --skip-tags=gl,noCI,flaky || EXIT_STATE=$?
48+
MAX_AUTO_RETRY=2
49+
retry npm run test-jasmine -- $SUITE --skip-tags=gl,noCI,flaky || EXIT_STATE=$?
4950

5051
exit $EXIT_STATE
5152
;;
@@ -55,7 +56,7 @@ case $1 in
5556

5657
SHARDS=($(node $ROOT/tasks/shard_jasmine_tests.js --limit=5 --tag=gl | circleci tests split))
5758
for s in ${SHARDS[@]}; do
58-
MAX_AUTO_RETRY=1
59+
MAX_AUTO_RETRY=2
5960
retry npm run test-jasmine -- "$s" --tags=gl --skip-tags=noCI --doNotFailOnEmptyTestSuite
6061
done
6162

0 commit comments

Comments
 (0)