diff --git a/indy_node/server/validator_info_tool.py b/indy_node/server/validator_info_tool.py index 52900b46a..dc297390a 100644 --- a/indy_node/server/validator_info_tool.py +++ b/indy_node/server/validator_info_tool.py @@ -16,7 +16,7 @@ def info(self): ts_str = "{}".format(time.strftime( "%A, %B %{0}d, %Y %{0}I:%M:%S %p %z".format('#' if os.name == 'nt' else '-'), time.localtime(info["timestamp"]))) - info.update({"Update time": ts_str}) + info.update({"Update_time": ts_str}) if 'Node_info' in info: if 'Metrics' in info['Node_info']: std_ledgers = [POOL_LEDGER_ID, DOMAIN_LEDGER_ID, CONFIG_LEDGER_ID] diff --git a/indy_node/test/validator_info/test_validator_info.py b/indy_node/test/validator_info/test_validator_info.py index fcf128715..51db58859 100644 --- a/indy_node/test/validator_info/test_validator_info.py +++ b/indy_node/test/validator_info/test_validator_info.py @@ -189,9 +189,9 @@ def test_validator_info_file_metrics_count_all_ledgers_field_valid(node): def test_validator_info_update_date_field_valid(info): - assert "Update time" in info + assert "Update_time" in info import time import datetime - from_str = time.mktime(datetime.datetime.strptime(info["Update time"], + from_str = time.mktime(datetime.datetime.strptime(info["Update_time"], "%A, %B %d, %Y %I:%M:%S %p %z").timetuple()) assert int(from_str) == info["timestamp"]