Skip to content

Commit 3c609ed

Browse files
committed
Replace e2e process substitution
1 parent fd0f73d commit 3c609ed

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

tasks/e2e-kitchensink.sh

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,14 @@ PORT=3001 \
143143
REACT_APP_SHELL_ENV_MESSAGE=fromtheshell \
144144
NODE_PATH=src \
145145
nohup npm start &>$tmp_server_log &
146-
grep -q 'The app is running at:' <(tail -f $tmp_server_log)
146+
while true
147+
do
148+
if grep -q 'The app is running at:' $tmp_server_log; then
149+
break
150+
else
151+
sleep 1
152+
fi
153+
done
147154
E2E_URL="http://localhost:3001" \
148155
REACT_APP_SHELL_ENV_MESSAGE=fromtheshell \
149156
CI=true NODE_PATH=src \
@@ -197,7 +204,14 @@ PORT=3002 \
197204
REACT_APP_SHELL_ENV_MESSAGE=fromtheshell \
198205
NODE_PATH=src \
199206
nohup npm start &>$tmp_server_log &
200-
grep -q 'The app is running at:' <(tail -f $tmp_server_log)
207+
while true
208+
do
209+
if grep -q 'The app is running at:' $tmp_server_log; then
210+
break
211+
else
212+
sleep 1
213+
fi
214+
done
201215
E2E_URL="http://localhost:3002" \
202216
REACT_APP_SHELL_ENV_MESSAGE=fromtheshell \
203217
CI=true NODE_PATH=src \

0 commit comments

Comments
 (0)