Skip to content

Commit

Permalink
Revert "Fix port bind (#117)" (#128)
Browse files Browse the repository at this point in the history
This reverts commit 0cf30a7.
  • Loading branch information
demonolock authored Jun 5, 2024
1 parent c1cfc26 commit b4268f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
readme = f.read()

setup(
version='1.10.1',
version='1.10.0',
name='testgres',
packages=['testgres', 'testgres.operations', 'testgres.helpers'],
description='Testing utility for PostgreSQL and its extensions',
Expand Down
4 changes: 1 addition & 3 deletions testgres/operations/remote_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import tempfile
import platform

from ..utils import reserve_port

# we support both pg8000 and psycopg2
try:
import psycopg2 as pglib
Expand Down Expand Up @@ -394,7 +392,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=reserve_port(), remote_port=5432)
self.establish_ssh_tunnel(local_port=port, remote_port=5432)
try:
conn = pglib.connect(
host=host,
Expand Down

0 comments on commit b4268f8

Please sign in to comment.