Skip to content

Commit

Permalink
test: no longer connect nodes in parallel in start_masternodes
Browse files Browse the repository at this point in the history
  • Loading branch information
UdjinM6 committed Sep 25, 2024
1 parent be72ef5 commit 1e17b74
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions test/functional/test_framework/test_framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -1446,17 +1446,12 @@ def do_connect(idx):
job.result()
jobs.clear()

# connect nodes in parallel
for idx in range(0, self.mn_count):
jobs.append(executor.submit(do_connect, idx))

# wait for all nodes to connect
for job in jobs:
job.result()
jobs.clear()

executor.shutdown()

# connect nodes
for idx in range(0, self.mn_count):
do_connect(idx)

def start_masternode(self, mninfo, extra_args=None):
args = ['-masternodeblsprivkey=%s' % mninfo.keyOperator] + self.extra_args[mninfo.nodeIdx]
if extra_args is not None:
Expand Down

0 comments on commit 1e17b74

Please sign in to comment.