Skip to content

Commit f9682e7

Browse files
committed
[test_framework] Set PortSeed.n directly after initialising params
This allows us to use `p2p_port()` with `set_test_params()`.
1 parent 455780b commit f9682e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/functional/test_framework/test_framework.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,11 +223,11 @@ def parse_args(self):
223223
# It still needs to exist and be None in order for tests to work however.
224224
self.options.descriptors = None
225225

226+
PortSeed.n = self.options.port_seed
227+
226228
def setup(self):
227229
"""Call this method to start up the test framework object with options set."""
228230

229-
PortSeed.n = self.options.port_seed
230-
231231
check_json_precision()
232232

233233
self.options.cachedir = os.path.abspath(self.options.cachedir)

0 commit comments

Comments
 (0)