We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent013b359 commit2afcc92Copy full SHA for 2afcc92
testgres/operations/remote_ops.py
@@ -413,7 +413,7 @@ def db_connect(self, dbname, user, password=None, host="localhost", port=5432):
413
self.establish_ssh_tunnel(local_port=local_port,remote_port=port)
414
try:
415
conn=pglib.connect(
416
-host=host,
+host='localhost',
417
port=local_port,
418
database=dbname,
419
user=user,
@@ -423,7 +423,7 @@ def db_connect(self, dbname, user, password=None, host="localhost", port=5432):
423
print("Database connection established successfully.")
424
returnconn
425
exceptExceptionase:
426
-print(f"Error connecting to the database:{str(e)}")
+print(f"!!!Error connecting to the database:{str(e)}")
427
ifself.tunnel_process:
428
self.tunnel_process.terminate()
429
print("SSH tunnel closed due to connection failure.")