Skip to content

Commit

Permalink
tests: check that inter-quorum connections are added
Browse files Browse the repository at this point in the history
  • Loading branch information
UdjinM6 committed Jul 17, 2022
1 parent ebaee72 commit bab7288
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/functional/feature_llmq_connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,20 @@ def run_test(self):
break
assert removed # no way we removed none

self.log.info("check that inter-quorum masternode conections are added")
added = False
for mn in self.mninfo:
if len(mn.node.quorum("memberof", mn.proTxHash)) > 0:
try:
with mn.node.assert_debug_log(['adding mn inter-quorum connections']):
self.mine_quorum()
added = True
except:
pass # it's ok to not add connections sometimes
if added:
break
assert added # no way we added none

def check_reconnects(self, expected_connection_count):
self.log.info("disable and re-enable networking on all masternodes")
for mn in self.mninfo:
Expand Down

0 comments on commit bab7288

Please sign in to comment.