Skip to content

Commit fa4a922

Browse files
author
MarcoFalke
committed
qa: Add test for missing testnet section in conf file
1 parent dddd6f0 commit fa4a922

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/functional/feature_config_args.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ def test_config_file_parser(self):
2525
conf.write('-dash=1\n')
2626
self.nodes[0].assert_start_raises_init_error(expected_msg='Error reading configuration file: parse error on line 1: -dash=1, options in configuration file must be specified without leading -')
2727

28+
with open(inc_conf_file_path, 'w', encoding='utf8') as conf:
29+
conf.write("wallet=foo\n")
30+
self.nodes[0].assert_start_raises_init_error(expected_msg='Error: Config setting for -wallet only applied on regtest network when in [regtest] section.')
31+
2832
with open(inc_conf_file_path, 'w', encoding='utf-8') as conf:
2933
conf.write('nono\n')
3034
self.nodes[0].assert_start_raises_init_error(expected_msg='Error reading configuration file: parse error on line 1: nono, if you intended to specify a negated option, use nono=1 instead')

0 commit comments

Comments
 (0)