Fix random test failure
This commit is contained in:
parent
8d182768f9
commit
b9667f50cf
@ -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: "
|
||||||
|
Loading…
Reference in New Issue
Block a user