Skip to content

Commit

Permalink
Add opentsdb to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
antonkomarev committed Sep 1, 2024
1 parent d8cc5f1 commit 52d41fa
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,13 @@ jobs:
- name: Wait for OpenTSDB to be ready
run: |
for i in {1..30}; do
curl -s http://opentsdb:4242/api/version && break || sleep 2
response=$(curl -s -o /dev/null -w "%{http_code}" http://localhost:4242/api/version)
if [ "$response" -eq 200 ]; then
echo "OpenTSDB is running!"
break
fi
echo "Waiting for OpenTSDB to be ready..."
sleep 2
done
- name: Execute tests
Expand Down

0 comments on commit 52d41fa

Please sign in to comment.