From 40ffac9de09c19baaaa0388e388ae6a99ae56f18 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 10 Apr 2023 19:45:13 +0200 Subject: [PATCH] Prevent random test failures by freezing time for certain tests --- tests/rpc/test_rpc_telegram.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/rpc/test_rpc_telegram.py b/tests/rpc/test_rpc_telegram.py index 54f612c59..cc83f96e0 100644 --- a/tests/rpc/test_rpc_telegram.py +++ b/tests/rpc/test_rpc_telegram.py @@ -2241,8 +2241,9 @@ def test_send_msg_buy_notification_no_fiat( ('Short', 'short_signal_01', 2.0), ]) def test_send_msg_sell_notification_no_fiat( - default_conf, mocker, direction, enter_signal, leverage) -> None: + default_conf, mocker, direction, enter_signal, leverage, time_machine) -> None: del default_conf['fiat_display_currency'] + time_machine.move_to('2022-05-02 00:00:00 +00:00', tick=False) telegram, _, msg_mock = get_telegram_testobject(mocker, default_conf) telegram.send_msg({