From e09fbe9e53b23b54ad1ee1b9c65535cf0f2f4915 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 13 Aug 2022 11:17:22 +0200 Subject: [PATCH] Improve test resiliance --- tests/test_freqtradebot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_freqtradebot.py b/tests/test_freqtradebot.py index fb5fd38d8..eb4804167 100644 --- a/tests/test_freqtradebot.py +++ b/tests/test_freqtradebot.py @@ -3451,7 +3451,7 @@ def test_execute_trade_exit_down_stoploss_on_exchange_dry_run( trade.stop_loss = 2.0 * 1.01 if is_short else 2.0 * 0.99 freqtrade.execute_trade_exit( - trade=trade, limit=(ticker_usdt_sell_up if is_short else ticker_usdt_sell_down())['bid'], + trade=trade, limit=trade.stop_loss, exit_check=ExitCheckTuple(exit_type=ExitType.STOP_LOSS)) assert rpc_mock.call_count == 2