Skip to content

Commit

Permalink
reduce max attempts. remove merge-only flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Yen Truong committed Aug 4, 2022
1 parent 2042fe6 commit ed8f0bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
11 changes: 2 additions & 9 deletions tests/scripts/combined-coverage.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
#!/bin/bash

# Run unit test and visual coverage test by default.
# Skip this step if merge-only flag is provided.
echo $1
if [ "$1" != "merge-only" ]
then
echo 'running individual tests...'
npm run test:unit
npm run test:visual
fi
npm run test:unit
npm run test:visual

# merge
mkdir -p coverage/merge
Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/visual-coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ JOB_ID=$(echo $!) #get the background job ID

# wait for a locally served Storybook
attempt_counter=0
max_attempts=100
max_attempts=30
until $(curl --output /dev/null --silent --head http://localhost:6006)
do
if [ ${attempt_counter} -eq ${max_attempts} ];then
Expand Down

0 comments on commit ed8f0bd

Please sign in to comment.