diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 42d949a..251b18f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -19,7 +19,7 @@ jobs: mongo: image: mongo options: >- - --health-cmd "mongosh --eval 'db.runCommand("ping").ok' --quiet" + --health-cmd "mongo --eval 'db.adminCommand(\"ping\")' || exit 1" --health-interval 10s --health-timeout 5s --health-retries 5