Skip to content

Commit d4d2814

Browse files
authored
Stop launching the removed WebSocket test server in objc-test.sh (#59952)
1 parent 7695d2f commit d4d2814

1 file changed

Lines changed: 0 additions & 25 deletions

File tree

‎scripts/objc-test.sh‎

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ cleanup() {
2828
fi
2929
# kill whatever is occupying port 8081 (packager)
3030
lsof -i tcp:8081 | awk 'NR!=1 {print $2}' | xargs kill
31-
# kill whatever is occupying port 5555 (web socket server)
32-
lsof -i tcp:5555 | awk 'NR!=1 {print $2}' | xargs kill
3331
}
3432

3533
# Wait for the package to start
@@ -51,24 +49,6 @@ waitForPackager() {
5149
echo "Packager is ready!"
5250
}
5351

54-
waitForWebSocketServer() {
55-
local -i max_attempts=60
56-
local -i attempt_num=1
57-
58-
until curl -s http://localhost:5555 | grep "Upgrade Required" -q; do
59-
if (( attempt_num == max_attempts )); then
60-
echo "WebSocket Server did not respond in time. No more attempts left."
61-
exit 1
62-
else
63-
(( attempt_num++ ))
64-
echo "WebSocket Server did not respond. Retrying for attempt number $attempt_num..."
65-
sleep 1
66-
fi
67-
done
68-
69-
echo "WebSocket Server is ready!"
70-
}
71-
7252
runTests() {
7353
# shellcheck disable=SC1091
7454
source "$ROOT/scripts/.tests.env"
@@ -129,11 +109,6 @@ main() {
129109
# Otherwise, just build RNTester and exit
130110
if [ "$1" = "test" ]; then
131111

132-
# Start the WebSocket test server
133-
echo "Launch WebSocket Server"
134-
sh "./IntegrationTests/launchWebSocketServer.sh" &
135-
waitForWebSocketServer
136-
137112
# Start the packager
138113
yarn start --max-workers=1 || echo "Can't start packager automatically" &
139114
waitForPackager

0 commit comments

Comments
 (0)