Merge pull request #8245 from eSAMTrade/bugfix-8244

Fix last_process related bug in RPC.health (BUG-#8231)
This commit is contained in:
Matthias
2023-02-28 18:18:53 +01:00
committed by GitHub
7 changed files with 21 additions and 14 deletions

View File

@@ -1252,6 +1252,6 @@ def test_rpc_health(mocker, default_conf) -> None:
freqtradebot = get_patched_freqtradebot(mocker, default_conf)
rpc = RPC(freqtradebot)
result = rpc._health()
assert result['last_process'] == '1970-01-01 00:00:00+00:00'
assert result['last_process_ts'] == 0
result = rpc.health()
assert result['last_process'] is None
assert result['last_process_ts'] is None

View File

@@ -1803,8 +1803,8 @@ def test_health(botclient):
assert_response(rc)
ret = rc.json()
assert ret['last_process_ts'] == 0
assert ret['last_process'] == '1970-01-01T00:00:00+00:00'
assert ret["last_process_ts"] is None
assert ret["last_process"] is None
def test_api_ws_subscribe(botclient, mocker):