From c66dddc03fd51802b47abf5026f78cf8438eecfe Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Wed, 31 Mar 2021 20:14:57 +1100 Subject: [PATCH] Force TCP for postgres --- .github/workflows/postgresql.yaml | 1 - InvenTree/InvenTree/ci_postgresql.py | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/postgresql.yaml b/.github/workflows/postgresql.yaml index 34490bee61..e0986c1e50 100644 --- a/.github/workflows/postgresql.yaml +++ b/.github/workflows/postgresql.yaml @@ -15,7 +15,6 @@ jobs: env: POSTGRES_USER: inventree POSTGRES_PASSWORD: password - POSTGRES_DB: inventree_test_db ports: - 5432:5432 diff --git a/InvenTree/InvenTree/ci_postgresql.py b/InvenTree/InvenTree/ci_postgresql.py index 09fbd7a459..52ebc57c7f 100644 --- a/InvenTree/InvenTree/ci_postgresql.py +++ b/InvenTree/InvenTree/ci_postgresql.py @@ -12,7 +12,8 @@ if 'test' in sys.argv: # Ensure postgresql backend is being used 'ENGINE': 'django.db.backends.postgresql', 'NAME': 'inventree_test_db', - 'USER': 'postgres', + 'USER': 'inventree', 'PASSWORD': 'password', + 'HOST': '127.0.0.1', 'PORT': '5432' }