From b9667f50cfe20377078243acaa211ab7589d4f19 Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 17 Aug 2022 14:05:12 +0200 Subject: [PATCH] Fix random test failure --- tests/test_freqtradebot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_freqtradebot.py b/tests/test_freqtradebot.py index c3d738075..a7ab6c614 100644 --- a/tests/test_freqtradebot.py +++ b/tests/test_freqtradebot.py @@ -4143,6 +4143,7 @@ def test_trailing_stop_loss_positive( 'last': enter_price + (-0.06 if is_short else 0.06), }) ) + caplog.clear() # stop-loss not reached, adjusted stoploss assert freqtrade.handle_trade(trade) is False caplog_text = (f"ETH/USDT - Using positive stoploss: 0.01 offset: {offset} profit: "