Skip to content

Commit

Permalink
qa: Limit -maxconnections in tests
Browse files Browse the repository at this point in the history
On systems such as NetBSD, this change enables the execution of
functional tests.
  • Loading branch information
hebasto committed Dec 19, 2024
1 parent c1252b1 commit a41053a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/functional/test_framework/test_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ def __init__(self, i, datadir_path, *, chain, rpchost, timewait, timeout_factor,
"-debugexclude=leveldb",
"-debugexclude=rand",
"-uacomment=testnode%d" % i, # required for subversion uniqueness across peers
# Limit max connections to mitigate failures on some systems caused by the warning:
# "Warning: Reducing -maxconnections from 125 to <N> due to system limitations".
f"-maxconnections={MAX_NODES}",
]
if self.descriptors is None:
self.args.append("-disablewallet")
Expand Down

0 comments on commit a41053a

Please sign in to comment.