8000 Skip ssl check by demonolock · Pull Request #149 · postgrespro/testgres · GitHub
[go: up one dir, main page]

Skip to content

Skip ssl check #149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 15 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix failed test_ports_management
  • Loading branch information
vshepard committed Nov 18, 2024
commit 1e8d91280bd2a42462b18e69c25ba1db7b984663
5 changes: 3 additions & 2 deletions testgres/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,15 +152,15 @@ def __init__(self, name=None, base_dir=None, port=None, conn_params: ConnectionP
self.os_ops = testgres_config.os_ops

self.host = self.os_ops.host
self.port = port or self.os_ops.port or reserve_port()

self.ssh_key = self.os_ops.ssh_key

# defaults for __exit__()
self.cleanup_on_good_exit = testgres_config.node_cleanup_on_good_exit
self.cleanup_on_bad_exit = testgres_config.node_cleanup_on_bad_exit
self.shutdown_max_attempts = 3

self.port = port or self.os_ops.port or reserve_port()

# NOTE: for compatibility
self.utils_log_name = self.utils_log_file
self.pg_log_name = self.pg_log_file
Expand Down Expand Up @@ -810,6 +810,7 @@ def stop(self, params=None, wait=True):

self._maybe_stop_logger()
self.is_started = False
release_port(self.port)
return self

def kill(self, someone=None):
Expand Down
1 change: 1 addition & 0 deletions tests/test_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -1052,6 +1052,7 @@ def test_make_simple_with_bin_dir(self):
correct_bin_dir = app.make_simple(base_dir=node.base_dir, bin_dir=bin_dir)
correct_bin_dir.slow_start()
correct_bin_dir.safe_psql("SELECT 1;")
correct_bin_dir.stop()

try:
wrong_bin_dir = app.make_empty(base_dir=node.base_dir, bin_dir="wrong/path")
Expand Down
0