diff --git a/tests/freqtradebot/test_integration.py b/tests/freqtradebot/test_integration.py index 9cf82de75..1cb6238d7 100644 --- a/tests/freqtradebot/test_integration.py +++ b/tests/freqtradebot/test_integration.py @@ -681,7 +681,11 @@ def test_dca_exiting(default_conf_usdt, ticker_usdt, fee, mocker, caplog, levera assert trade.orders[-1].ft_order_side == "sell" assert pytest.approx(trade.stake_amount) == 40 assert trade.is_open is False - assert log_has_re("Amount to exit is 0.0 due to exchange limits - not exiting.", caplog) + assert log_has_re( + "Wanted to exit of -0.01 amount, but exit amount is now 0.0 due to exchange limits " + "- not exiting.", + caplog, + ) expected_profit = starting_amount - 60 + trade.realized_profit assert pytest.approx(freqtrade.wallets.get_free("USDT")) == expected_profit if spot: