mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 23:09:44 -04:00
test: add coverage for non-hex value to -minimumchainwork
This commit is contained in:
parent
5f65afff9c
commit
ebfc308ea4
1 changed files with 8 additions and 0 deletions
|
@ -106,5 +106,13 @@ class MinimumChainWorkTest(BitcoinTestFramework):
|
||||||
# not be exercising the logic we want!)
|
# not be exercising the logic we want!)
|
||||||
assert_equal(self.nodes[2].getblockchaininfo()['initialblockdownload'], True)
|
assert_equal(self.nodes[2].getblockchaininfo()['initialblockdownload'], True)
|
||||||
|
|
||||||
|
self.log.info("Test -minimumchainwork with a non-hex value")
|
||||||
|
self.stop_node(0)
|
||||||
|
self.nodes[0].assert_start_raises_init_error(
|
||||||
|
["-minimumchainwork=test"],
|
||||||
|
expected_msg='Error: Invalid non-hex (test) minimum chain work value specified',
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
MinimumChainWorkTest().main()
|
MinimumChainWorkTest().main()
|
||||||
|
|
Loading…
Add table
Reference in a new issue