fixing tests

This commit is contained in:
SwiftyOS
2024-12-04 10:14:00 +01:00
parent f3168ea187
commit 4e886bd6e9
2 changed files with 14 additions and 2 deletions

View File

@@ -14,6 +14,18 @@ services:
- "${DB_PORT}:5432"
networks:
- app-network-test
redis-test:
image: redis:latest
command: redis-server --requirepass password
ports:
- "6379:6379"
networks:
- app-network-test
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
networks:
app-network-test:

View File

@@ -16,9 +16,9 @@ def wait_for_postgres(max_retries=5, delay=5):
"postgres-test",
"pg_isready",
"-U",
"agpt_user",
"postgres",
"-d",
"agpt_local",
"postgres",
],
check=True,
capture_output=True,