Content-Length: 1696 | pFad | http://github.com/postgrespro/testgres/pull/117.patch
thub.com
From ba013149b445377f4895e0b21d8e81072c2991de Mon Sep 17 00:00:00 2001
From: vshepard
Date: Tue, 26 Mar 2024 13:02:01 +0100
Subject: [PATCH 1/2] Fix port bind
---
testgres/operations/remote_ops.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/testgres/operations/remote_ops.py b/testgres/operations/remote_ops.py
index 01251e1c..f182768b 100644
--- a/testgres/operations/remote_ops.py
+++ b/testgres/operations/remote_ops.py
@@ -4,6 +4,8 @@
import tempfile
import platform
+from ..utils import reserve_port
+
# we support both pg8000 and psycopg2
try:
import psycopg2 as pglib
@@ -392,7 +394,7 @@ def db_connect(self, dbname, user, password=None, host="localhost", port=5432):
"""
Established SSH tunnel and Connects to a PostgreSQL
"""
- self.establish_ssh_tunnel(local_port=port, remote_port=5432)
+ self.establish_ssh_tunnel(local_port=reserve_port(), remote_port=5432)
try:
conn = pglib.connect(
host=host,
From 0fb9a9015d8c872bafbe3038900f2fb7468396b2 Mon Sep 17 00:00:00 2001
From: vshepard
Date: Wed, 27 Mar 2024 22:40:31 +0100
Subject: [PATCH 2/2] Up testgres version - 1.10.1
---
setup.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/setup.py b/setup.py
index b006c8bf..412e8823 100755
--- a/setup.py
+++ b/setup.py
@@ -27,7 +27,7 @@
readme = f.read()
setup(
- version='1.10.0',
+ version='1.10.1',
name='testgres',
packages=['testgres', 'testgres.operations', 'testgres.helpers'],
description='Testing utility for PostgreSQL and its extensions',
--- a PPN by Garber Painting Akron. With Image Size Reduction included!Fetched URL: http://github.com/postgrespro/testgres/pull/117.patch
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy