fix(tests): try to fix the auto_resume_tests yet again for integration tests

This commit is contained in:
perf3ct
2025-06-19 00:03:07 +00:00
parent 0bf384bbb1
commit cad685bb47
2 changed files with 19 additions and 1 deletions

View File

@@ -88,6 +88,20 @@ jobs:
sleep 2
done
- name: Wait for PostgreSQL to be ready
run: |
until pg_isready -h localhost -p 5432 -U postgres; do
echo "Waiting for PostgreSQL..."
sleep 1
done
echo "PostgreSQL is ready!"
- name: Verify database connection
run: |
echo "Testing database connection..."
PGPASSWORD=postgres psql -h localhost -p 5432 -U postgres -d readur_test -c "SELECT version();"
echo "Database connection successful!"
- name: Run integration tests
run: |
cargo test --test '*' -- --test-threads=1