refactor(qa): Move check right below related check

This commit is contained in:
Hodlinator
2026-08-24 13:10:19 +02:00
parent 7e3b60584b
commit 6d570415a0

View File

@@ -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()