Skip to content

test_pg_ctl_wait_option is updated #213

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

Merged
Show file tree
Hide file tree
Changes from all commits
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
13 changes: 13 additions & 0 deletions tests/test_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,19 @@ def test_pg_ctl_wait_option(self):
nAttempt = 0
while True:
if nAttempt == C_MAX_ATTEMPTS:
#
# [2025-03-11]
# We have an unexpected problem with this test in CI
# Let's get an additional information about this test failure.
#
logging.error("Node was not stopped.")
if not node.os_ops.path_exists(node.pg_log_file):
logging.warning("Node log does not exist.")
else:
logging.info("Let's read node log file [{0}]".format(node.pg_log_file))
logFileData = node.os_ops.read(node.pg_log_file, binary=False)
logging.info("Node log file content:\n{0}".format(logFileData))

raise Exception("Could not stop node.")

nAttempt += 1
Expand Down
13 changes: 13 additions & 0 deletions tests/test_simple_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,19 @@ def test_pg_ctl_wait_option(self):
nAttempt = 0
while True:
if nAttempt == C_MAX_ATTEMPTS:
#
# [2025-03-11]
# We have an unexpected problem with this test in CI
# Let's get an additional information about this test failure.
#
logging.error("Node was not stopped.")
if not node.os_ops.path_exists(node.pg_log_file):
logging.warning("Node log does not exist.")
else:
logging.info("Let's read node log file [{0}]".format(node.pg_log_file))
logFileData = node.os_ops.read(node.pg_log_file, binary=False)
logging.info("Node log file content:\n{0}".format(logFileData))

raise Exception("Could not stop node.")

nAttempt += 1
Expand Down