diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index b2ec8dee..bc152820 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -143,7 +143,7 @@ jobs: - name: Run Python tests env: - DATABASE_URL: postgresql://test:test@localhost:5432/cashnet_test + DATABASE_URL: postgresql://test:test@127.0.0.1:5432/cashnet_test ENVIRONMENT: test run: | pytest tests/ \ @@ -199,7 +199,7 @@ jobs: - name: Test schema application env: - DATABASE_URL: postgresql://test:test@localhost:5432/cashnet_migration_test + DATABASE_URL: postgresql://test:test@127.0.0.1:5432/cashnet_migration_test run: | echo "Testing schema application..." psql "$DATABASE_URL" -f database/schema.sql diff --git a/config/environments/test.env b/config/environments/test.env index b914c871..141728f6 100644 --- a/config/environments/test.env +++ b/config/environments/test.env @@ -9,7 +9,7 @@ DEBUG=true LOG_LEVEL=debug # Database -DATABASE_URL=postgresql://test:test@localhost:5432/cashnet_test +DATABASE_URL=postgresql://test:test@127.0.0.1:5432/cashnet_test DATABASE_POOL_SIZE=5 DATABASE_MAX_OVERFLOW=10