From 6d570415a018dd2fb43486c97427bcea03c0add1 Mon Sep 17 00:00:00 2001 From: Hodlinator <172445034+hodlinator@users.noreply.github.com> Date: Mon, 24 Aug 2026 13:10:19 +0200 Subject: [PATCH] refactor(qa): Move check right below related check --- test/functional/feature_init.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/test/functional/feature_init.py b/test/functional/feature_init.py index 283a67ec774..4fa88bb200e 100755 --- a/test/functional/feature_init.py +++ b/test/functional/feature_init.py @@ -378,6 +378,16 @@ class InitTest(BitcoinTestFramework): match=ErrorMatch.PARTIAL_REGEX ) + # Start without the HTTP server to ensure that -rpcmaxconnections is ignored + with node.assert_debug_log( + expected_msgs = ["net thread start"], + unexpected_msgs = ["Initialized HTTP server"], + timeout = 10 + ): + node.start(extra_args=[f"-rpcmaxconnections={2**64}", "-server=0"]) + # No HTTP server, no RPC `stop` + node.kill_process() + if self.RLIM_INFINITY is not None: # Get the platform's file descriptor limit, if possible import resource @@ -408,16 +418,6 @@ class InitTest(BitcoinTestFramework): match=ErrorMatch.PARTIAL_REGEX ) - # Start without the HTTP server to ensure that -rpcmaxconnections is ignored - with node.assert_debug_log( - expected_msgs = ["net thread start"], - unexpected_msgs = ["Initialized HTTP server"], - timeout = 10 - ): - node.start(extra_args=[f"-rpcmaxconnections={2**64}", "-server=0"]) - # No HTTP server, no RPC `stop` - node.kill_process() - def run_test(self): self.init_pid_test() self.init_stress_test_interrupt()