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

Commit 9c74acf

Browse files
authored
tighten health checks (#735)
1 parent b351c56 commit 9c74acf

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ jobs:
6767
run: |
6868
until docker ps | fgrep "(healthy)" | grep ${{ matrix.backendtype }} ; do
6969
docker ps
70+
sleep 0.5
7071
done
7172
7273
- name: Test

server/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ services:
3939
MYSQL_DATABASE: db
4040
MYSQL_ROOT_PASSWORD: password
4141
healthcheck:
42-
test: ["CMD", "mysqladmin", "ping"]
42+
test: ["CMD", "mysqladmin", "status", "-uroot", "-ppassword"]
4343
interval: 5s
4444
timeout: 2s
4545
retries: 10
@@ -54,7 +54,7 @@ services:
5454
MYSQL_DATABASE: db2
5555
MYSQL_ROOT_PASSWORD: root
5656
healthcheck:
57-
test: ["CMD", "mysqladmin", "ping"]
57+
test: ["CMD", "mysqladmin", "status", "-uroot", "-proot"]
5858
interval: 5s
5959
timeout: 2s
6060
retries: 10

0 commit comments

Comments
 (0)