Skip to content

Commit ebfc308

Browse files
committed
test: add coverage for non-hex value to -minimumchainwork
1 parent 5f65aff commit ebfc308

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/functional/feature_minchainwork.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,5 +106,13 @@ def run_test(self):
106106
# not be exercising the logic we want!)
107107
assert_equal(self.nodes[2].getblockchaininfo()['initialblockdownload'], True)
108108

109+
self.log.info("Test -minimumchainwork with a non-hex value")
110+
self.stop_node(0)
111+
self.nodes[0].assert_start_raises_init_error(
112+
["-minimumchainwork=test"],
113+
expected_msg='Error: Invalid non-hex (test) minimum chain work value specified',
114+
)
115+
116+
109117
if __name__ == '__main__':
110118
MinimumChainWorkTest().main()

0 commit comments

Comments
 (0)