Skip to content

Commit

Permalink
try fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
zcemycl committed Nov 7, 2023
1 parent 6049e5e commit 25ea531
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,14 @@ def get_engine_orm() -> AsyncEngine:
db_url = "postgresql+asyncpg://postgres:postgres@localhost/postgres"
engine = create_async_engine(
db_url,
connect_args={
"server_settings": {
"tcp_keepalives_idle": "600",
"tcp_keepalives_interval": "30",
"tcp_keepalives_count": "10",
}
},
pool_recycle=1800,
# connect_args={
# "server_settings": {
# "tcp_keepalives_idle": "600",
# "tcp_keepalives_interval": "30",
# "tcp_keepalives_count": "10",
# }
# },
)

yield engine
Expand Down

0 comments on commit 25ea531

Please sign in to comment.