Skip to content

Commit

Permalink
[Tests] spork functional test: check spork value after node restart
Browse files Browse the repository at this point in the history
  • Loading branch information
random-zebra committed Sep 23, 2019
1 parent 8f6d6e1 commit 3ec2f61
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/functional/rpc_spork.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,13 @@ def run_test(self):
assert(sporks["SPORK_8_MASTERNODE_PAYMENT_ENFORCEMENT"] == new_value)
active = self.nodes[0].spork("active")
assert (active["SPORK_8_MASTERNODE_PAYMENT_ENFORCEMENT"])
self.log.info("Stopping nodes...")
self.stop_nodes()
self.log.info("Restarting node 1...")
self.start_node(1, [])
sporks = self.nodes[1].spork("show")
self.printDict(sporks)
assert (sporks["SPORK_8_MASTERNODE_PAYMENT_ENFORCEMENT"] == new_value)



Expand Down

0 comments on commit 3ec2f61

Please sign in to comment.