Skip to content

Commit 92127d2

Browse files
committed
test: Always test the existence of secretKeyShare in test_mn_quorum_data
With this change it also validates that "secretKeyShare" is not in `quorum_info` if its not expected to be in there. Before this was basically just not tested.
1 parent 3e586f2 commit 92127d2

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
@@ -1090,8 +1090,8 @@ def get_mninfo(self, proTxHash):
10901090
return None
10911091

10921092
def test_mn_quorum_data(self, test_mn, quorum_type_in, quorum_hash_in, expect_secret=True):
1093-
quorum_info = test_mn.node.quorum("info", quorum_type_in, quorum_hash_in, expect_secret)
1094-
if expect_secret and "secretKeyShare" not in quorum_info:
1093+
quorum_info = test_mn.node.quorum("info", quorum_type_in, quorum_hash_in, True)
1094+
if expect_secret != ("secretKeyShare" in quorum_info):
10951095
return False
10961096
if "members" not in quorum_info or len(quorum_info["members"]) == 0:
10971097
return False

0 commit comments

Comments
 (0)