mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-11 21:20:39 +02:00
refactor(qa): Move check right below related check
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user