From 406682c3bb93dd527528077e6d278d907c8ce9bb Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 30 Jan 2021 10:20:40 +0100 Subject: [PATCH] Fix random api failure in slow cases --- tests/rpc/test_rpc_apiserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/rpc/test_rpc_apiserver.py b/tests/rpc/test_rpc_apiserver.py index f5b9a58f3..b050e5694 100644 --- a/tests/rpc/test_rpc_apiserver.py +++ b/tests/rpc/test_rpc_apiserver.py @@ -588,7 +588,7 @@ def test_api_profit(botclient, mocker, ticker, fee, markets, limit_buy_order, li rc = client_get(client, f"{BASE_URI}/profit") assert_response(rc) - assert rc.json() == {'avg_duration': '0:00:00', + assert rc.json() == {'avg_duration': ANY, 'best_pair': 'ETH/BTC', 'best_rate': 6.2, 'first_trade_date': 'just now',