diff options
author | MarcoFalke <falke.marco@gmail.com> | 2019-03-21 16:04:35 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2019-03-21 15:54:28 -0400 |
commit | fa4a922d78bf16892172b20f29389dc11b72847d (patch) | |
tree | fc14ddbfcb3b8a20803b3020677c671c0def8db9 /test/functional | |
parent | dddd6f0f5832844de8d6f9956dabbb8c8abe80b5 (diff) |
qa: Add test for missing testnet section in conf file
Diffstat (limited to 'test/functional')
-rwxr-xr-x | test/functional/feature_config_args.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/feature_config_args.py b/test/functional/feature_config_args.py index 13481b0478..2b93e3c24d 100755 --- a/test/functional/feature_config_args.py +++ b/test/functional/feature_config_args.py @@ -25,6 +25,10 @@ class ConfArgsTest(BitcoinTestFramework): conf.write('-dash=1\n') 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 -') + with open(inc_conf_file_path, 'w', encoding='utf8') as conf: + conf.write("wallet=foo\n") + self.nodes[0].assert_start_raises_init_error(expected_msg='Error: Config setting for -wallet only applied on regtest network when in [regtest] section.') + with open(inc_conf_file_path, 'w', encoding='utf-8') as conf: conf.write('nono\n') 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') |