From 290be9eafa488dd49820b3bb5698391c0abbc6a2 Mon Sep 17 00:00:00 2001 From: Hodlinator <172445034+hodlinator@users.noreply.github.com> Date: Mon, 24 Aug 2026 13:13:55 +0200 Subject: [PATCH] qa: Minor feature_init.py improvements * Emit log message before performing check. * Drop needless 'r' from string literal. --- test/functional/feature_init.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/feature_init.py b/test/functional/feature_init.py index 694404e3f91..60de66c528e 100755 --- a/test/functional/feature_init.py +++ b/test/functional/feature_init.py @@ -378,7 +378,7 @@ class InitTest(BitcoinTestFramework): match=ErrorMatch.PARTIAL_REGEX ) - # Start without the HTTP server to ensure that -rpcmaxconnections is ignored + self.log.info("Checking -rpcmaxconnections is ignored when disabling the HTTP server") with node.assert_debug_log( expected_msgs = ["net thread start"], unexpected_msgs = ["Initialized HTTP server"], @@ -406,7 +406,7 @@ class InitTest(BitcoinTestFramework): # Note this prints a message to the log and stderr but does not abort the process with node.assert_debug_log(expected_msgs=[f"Reducing -maxconnections from {soft} "]): self.restart_node(1, extra_args=[f"-maxconnections={soft}"]) - self.stop_node(1, expected_stderr=re.compile(fr"Reducing -maxconnections from {soft} ")) + self.stop_node(1, expected_stderr=re.compile(f"Reducing -maxconnections from {soft} ")) # From httpserver.h DEFAULT_MAX_HTTP_CONNECTIONS = 16