Skip to content

Commit

Permalink
[Tests] governance_sync_basic sign final budget with DMN too
Browse files Browse the repository at this point in the history
  • Loading branch information
random-zebra committed May 23, 2021
1 parent 474e0b2 commit baf60c7
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions test/functional/tiertwo_governance_sync_basic.py
Expand Up @@ -210,12 +210,19 @@ def run_test(self):

self.log.info("budget finalization synced!, now voting for the budget finalization..")

self.ownerOne.mnfinalbudget("vote-many", budgetFinHash)
self.ownerTwo.mnfinalbudget("vote-many", budgetFinHash)
voteResult = self.ownerOne.mnfinalbudget("vote-many", budgetFinHash, True)
assert_equal(voteResult["detail"][0]["result"], "success")
self.log.info("Remote One voted successfully.")
voteResult = self.ownerTwo.mnfinalbudget("vote-many", budgetFinHash, True)
assert_equal(voteResult["detail"][0]["result"], "success")
self.log.info("Remote Two voted successfully.")
voteResult = self.remoteDMN.mnfinalbudget("vote", budgetFinHash)
assert_equal(voteResult["detail"][0]["result"], "success")
self.log.info("DMN voted successfully.")
self.stake(2, [self.remoteOne, self.remoteTwo])

self.log.info("checking finalization votes..")
self.check_budget_finalization_sync(2, "OK")
self.check_budget_finalization_sync(3, "OK")

self.stake(8, [self.remoteOne, self.remoteTwo])
addrInfo = self.miner.listreceivedbyaddress(0, False, False, firstProposalAddress)
Expand Down

0 comments on commit baf60c7

Please sign in to comment.