fix: add retry config keys to postgres integration test fixture

This commit is contained in:
Raphaël MANSUY 2025-12-04 19:33:32 +08:00
parent 78a5f8a9d6
commit b1b58d1f8d

View file

@ -39,6 +39,11 @@ class TestPostgresRetryIntegration:
"database": os.getenv("POSTGRES_DATABASE", "postgres"),
"workspace": os.getenv("POSTGRES_WORKSPACE", "test_retry"),
"max_connections": int(os.getenv("POSTGRES_MAX_CONNECTIONS", "10")),
# Retry configuration
"connection_retry_attempts": int(os.getenv("POSTGRES_CONNECTION_RETRIES", "3")),
"connection_retry_backoff": float(os.getenv("POSTGRES_CONNECTION_RETRY_BACKOFF", "0.5")),
"connection_retry_backoff_max": float(os.getenv("POSTGRES_CONNECTION_RETRY_BACKOFF_MAX", "2.0")),
"pool_close_timeout": float(os.getenv("POSTGRES_POOL_CLOSE_TIMEOUT", "3.0")),
}
@pytest.fixture