Skip to content
This repository was archived by the owner on Sep 25, 2025. It is now read-only.

Commit fccbe92

Browse files
committed
updated
1 parent 5aba860 commit fccbe92

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/validate_service.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
#!/bin/bash
22
echo "Validating application..."
3-
curl -f http://localhost:3000/health || exit 1
3+
for i in {1..10}; do
4+
curl -f http://localhost:3000/health && exit 0
5+
echo "Waiting for server to respond..."
6+
sleep 2
7+
done
8+
echo "Server did not respond in time."
9+
exit 1

0 commit comments

Comments
 (0)