From ecfbe106e5d723e5acd22e70b229920f0fd6e869 Mon Sep 17 00:00:00 2001 From: "d.kovalenko" Date: Tue, 11 Mar 2025 22:01:34 +0300 Subject: [PATCH] test_pg_ctl_wait_option is updated When node is not stopped, we read and output a content of node log file to provide an additional information about this problem. It should help find a reason of unexpected problem with this test in CI. --- tests/test_simple.py | 13 +++++++++++++ tests/test_simple_remote.py | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/tests/test_simple.py b/tests/test_simple.py index d9844fed..e13cf095 100644 --- a/tests/test_simple.py +++ b/tests/test_simple.py @@ -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 diff --git a/tests/test_simple_remote.py b/tests/test_simple_remote.py index cdad161c..d484f1e3 100755 --- a/tests/test_simple_remote.py +++ b/tests/test_simple_remote.py @@ -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 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy