Fix random test failure

This commit is contained in:
Matthias 2022-08-17 14:05:12 +02:00
parent 8d182768f9
commit b9667f50cf

View File

@ -4143,6 +4143,7 @@ def test_trailing_stop_loss_positive(
'last': enter_price + (-0.06 if is_short else 0.06), 'last': enter_price + (-0.06 if is_short else 0.06),
}) })
) )
caplog.clear()
# stop-loss not reached, adjusted stoploss # stop-loss not reached, adjusted stoploss
assert freqtrade.handle_trade(trade) is False assert freqtrade.handle_trade(trade) is False
caplog_text = (f"ETH/USDT - Using positive stoploss: 0.01 offset: {offset} profit: " caplog_text = (f"ETH/USDT - Using positive stoploss: 0.01 offset: {offset} profit: "