mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
Merge #6077: test: functional tests for RPC getgovernanceinfo
3971613285
feat: functional tests for RPC getgovernanceinfo (Konstantin Akimov) Pull request description: ## Issue being fixed or feature implemented https://github.com/dashpay/dash-issues/issues/63 ## What was done? It adds functional test for `getgovernanceinfo` ## How Has This Been Tested? Run unit/functional tests Check output of `test/functional/test_runner.py -j20 --previous-releases --coverage --extended` ``` Uncovered RPC commands: - cleardiscouraged - debug - getblockheaders - getmerkleblocks - getpoolinfo - voteraw ``` ## Breaking Changes N/A ## Checklist: - [x] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [x] I have added or updated relevant unit/integration/functional/e2e tests - [ ] I have made corresponding changes to the documentation - [x] I have assigned this pull request to a milestone ACKs for top commit: PastaPastaPasta: utACK3971613285
Tree-SHA512: f2d93db9068a707f2b33dd841b14f266db226fc5e907f19a49cf7a856b840f0c2c1f521c462996888933bb0ed636c288db12b1d36978c124cb536ea1ab9f3892
This commit is contained in:
commit
fc11cd8362
@ -90,6 +90,15 @@ class DashGovernanceTest (DashTestFramework):
|
||||
return count == len(self.nodes)
|
||||
|
||||
def run_test(self):
|
||||
governance_info = self.nodes[0].getgovernanceinfo()
|
||||
assert_equal(governance_info['governanceminquorum'], 1)
|
||||
assert_equal(governance_info['proposalfee'], 1)
|
||||
assert_equal(governance_info['superblockcycle'], 20)
|
||||
assert_equal(governance_info['superblockmaturitywindow'], 10)
|
||||
assert_equal(governance_info['lastsuperblock'], 120)
|
||||
assert_equal(governance_info['nextsuperblock'], governance_info['lastsuperblock'] + governance_info['superblockcycle'])
|
||||
assert_equal(governance_info['governancebudget'], 1000)
|
||||
|
||||
map_vote_outcomes = {
|
||||
0: "none",
|
||||
1: "yes",
|
||||
|
Loading…
Reference in New Issue
Block a user