branch-2.1: [fix](test) Optimize the health check after oceanbase docker starts #46434 (#46599)

Cherry-picked from #46434

Co-authored-by: zy-kkk <zhongyk10@gmail.com>
This commit is contained in:
github-actions[bot]
2025-01-08 20:29:40 +08:00
committed by GitHub
parent c805e69171
commit 3bc70876c4

View File

@ -28,7 +28,7 @@ services:
ports:
- ${DOCKER_OCEANBASE_EXTERNAL_PORT}:2881
healthcheck:
test: ["CMD-SHELL", "obclient -h127.1 -uroot@sys -P2881 -e 'SELECT 1'"]
test: ["CMD-SHELL", "obclient -h127.1 -P2881 -uroot@test -e 'SELECT * FROM doris_test.all_types limit 1'"]
interval: 5s
timeout: 60s
retries: 120