diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-07-30 10:50:54 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-08-28 11:39:26 +0200 |
commit | fa48405ef84985e5a9d38ec38e90d16596ea45b5 (patch) | |
tree | 18d9cf6e3527657df8d29d1cba2855a18e76330e /test/functional/feature_settings.py | |
parent | 862fde88be706adb20a211178253636442c3ae00 (diff) | |
download | bitcoin-fa48405ef84985e5a9d38ec38e90d16596ea45b5.tar.xz |
Warn on unknown rw_settings
Diffstat (limited to 'test/functional/feature_settings.py')
-rwxr-xr-x | test/functional/feature_settings.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/test/functional/feature_settings.py b/test/functional/feature_settings.py index c565854bb0..26e7398dee 100755 --- a/test/functional/feature_settings.py +++ b/test/functional/feature_settings.py @@ -30,19 +30,25 @@ class SettingsTest(BitcoinTestFramework): # Assert settings are parsed and logged with settings.open("w") as fp: - json.dump({"string": "string", "num": 5, "bool": True, "null": None, "list": [6,7]}, fp) + json.dump({"string": "string", "num": 5, "bool": True, "null": None, "list": [6, 7]}, fp) with node.assert_debug_log(expected_msgs=[ + 'Ignoring unknown rw_settings value bool', + 'Ignoring unknown rw_settings value list', + 'Ignoring unknown rw_settings value null', + 'Ignoring unknown rw_settings value num', + 'Ignoring unknown rw_settings value string', 'Setting file arg: string = "string"', 'Setting file arg: num = 5', 'Setting file arg: bool = true', 'Setting file arg: null = null', - 'Setting file arg: list = [6,7]']): + 'Setting file arg: list = [6,7]', + ]): self.start_node(0) self.stop_node(0) # Assert settings are unchanged after shutdown with settings.open() as fp: - assert_equal(json.load(fp), {"string": "string", "num": 5, "bool": True, "null": None, "list": [6,7]}) + assert_equal(json.load(fp), {"string": "string", "num": 5, "bool": True, "null": None, "list": [6, 7]}) # Test invalid json with settings.open("w") as fp: |