Skip to content

Commit

Permalink
Test: add test case for budget data re-synchronization.
Browse files Browse the repository at this point in the history
  • Loading branch information
furszy committed Oct 27, 2021
1 parent 2bde6fc commit 6d285b2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/functional/tiertwo_governance_sync_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,17 @@ def run_test(self):

self.stake(1, [self.remoteOne, self.remoteTwo])

self.log.info("checking resync, cleaning budget data..")
# now let's drop budget data and try to re-sync it.
self.remoteOne.cleanbudget(True)
assert_equal(self.remoteOne.mnsync("status")["RequestedMasternodeAssets"], 0)
assert_equal(self.remoteOne.getbudgetprojection(), []) # empty

self.log.info("budget cleaned, starting resync")
self.wait_until_mnsync_finished()
self.check_budgetprojection(expected_budget)
self.log.info("budget data resynchronized successfully!")

# now let's verify that votes expire properly.
# Drop one MN and one DMN
self.log.info("expiring MN1..")
Expand Down

0 comments on commit 6d285b2

Please sign in to comment.