Skip to content

Commit

Permalink
one-line waiting for app start (facebook#3411)
Browse files Browse the repository at this point in the history
* one-line waiting for app start

* remove fixed todo
  • Loading branch information
xjlim authored and Pavel Zhytko committed Jul 10, 2018
1 parent 17c24bd commit 88d8a64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 19 deletions.
4 changes: 1 addition & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ platform:
- x64

install:
# TODO: Remove after https://github.com/appveyor/ci/issues/1426 is fixed
- set PATH=C:\Program Files\Git\mingw64\bin;%PATH%
- ps: Install-Product node $env:nodejs_version $env:platform

build: off
Expand All @@ -41,4 +39,4 @@ skip_commits:
test_script:
- node --version
- npm --version
- sh tasks/e2e-%test_suite%.sh
- bash tasks/e2e-%test_suite%.sh
18 changes: 2 additions & 16 deletions tasks/e2e-kitchensink.sh
Original file line number Diff line number Diff line change
Expand Up @@ -218,14 +218,7 @@ PORT=3001 \
REACT_APP_SHELL_ENV_MESSAGE=fromtheshell \
NODE_PATH=src \
nohup npm start &>$tmp_server_log &
while true
do
if grep -q 'You can now view' $tmp_server_log; then
break
else
sleep 1
fi
done
grep -q 'You can now view' <(tail -f $tmp_server_log)
E2E_URL="http://localhost:3001" \
REACT_APP_SHELL_ENV_MESSAGE=fromtheshell \
CI=true NODE_PATH=src \
Expand Down Expand Up @@ -287,14 +280,7 @@ PORT=3002 \
REACT_APP_SHELL_ENV_MESSAGE=fromtheshell \
NODE_PATH=src \
nohup npm start &>$tmp_server_log &
while true
do
if grep -q 'You can now view' $tmp_server_log; then
break
else
sleep 1
fi
done
grep -q 'You can now view' <(tail -f $tmp_server_log)
E2E_URL="http://localhost:3002" \
REACT_APP_SHELL_ENV_MESSAGE=fromtheshell \
CI=true NODE_PATH=src \
Expand Down

0 comments on commit 88d8a64

Please sign in to comment.