aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authordergoegge <n.goeggi@gmail.com>2022-06-08 20:57:48 +0200
committerdergoegge <n.goeggi@gmail.com>2022-06-08 21:00:18 +0200
commitf9682e75ac184a62c7e29287882df34c25303033 (patch)
treedf903f1795369f93894ebe862357cf93454029a8 /test
parent455780b1aebae21ebd5d83d2f0ff6a2264ac9608 (diff)
downloadbitcoin-f9682e75ac184a62c7e29287882df34c25303033.tar.xz
[test_framework] Set PortSeed.n directly after initialising params
This allows us to use `p2p_port()` with `set_test_params()`.
Diffstat (limited to 'test')
-rwxr-xr-xtest/functional/test_framework/test_framework.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/test_framework/test_framework.py b/test/functional/test_framework/test_framework.py
index a39ee003ef..3f02d21d42 100755
--- a/test/functional/test_framework/test_framework.py
+++ b/test/functional/test_framework/test_framework.py
@@ -223,11 +223,11 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass):
# It still needs to exist and be None in order for tests to work however.
self.options.descriptors = None
+ PortSeed.n = self.options.port_seed
+
def setup(self):
"""Call this method to start up the test framework object with options set."""
- PortSeed.n = self.options.port_seed
-
check_json_precision()
self.options.cachedir = os.path.abspath(self.options.cachedir)