From 548c891aa5b8d42f103e51af2987e9be3a268243 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 7 Sep 2026 14:30:15 +0000 Subject: [PATCH 1/2] Initial plan From 9b3cfde03a08a452fad709e0cef6927dcd74ad80 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 7 Sep 2026 14:33:40 +0000 Subject: [PATCH 2/2] fix(ci): use explicit loopback DB host in test config Co-authored-by: Sandesh14015 <226898507+Sandesh14015@users.noreply.github.com> --- .github/workflows/ci-cd.yml | 4 ++-- config/environments/test.env | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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