Skip to content

Commit bc20b34

Browse files
committed
fix: pass ip_type to connector.connect in to_thread system test
1 parent ac288eb commit bc20b34

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎tests/system/test_psycopg_connection.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ def test_system_psycopg_to_thread() -> None:
188188
user = os.environ["POSTGRES_USER"]
189189
password = os.environ["POSTGRES_PASS"]
190190
db = os.environ["POSTGRES_DB"]
191+
ip_type = os.environ.get("IP_TYPE", "public")
191192

192193
async def run_connect():
193194
with Connector() as connector:
@@ -199,6 +200,7 @@ async def run_connect():
199200
user=user,
200201
password=password,
201202
db=db,
203+
ip_type=ip_type,
202204
)
203205
cursor = conn.cursor()
204206
cursor.execute("SELECT NOW();")

0 commit comments

Comments
 (0)