Fixed failing test_check_handle_timedout_buy_usercustom

This commit is contained in:
Sam Germain
2021-10-09 15:11:48 -06:00
parent 4fc4007975
commit 85e86ec09d
2 changed files with 30 additions and 12 deletions

View File

@@ -1038,7 +1038,11 @@ class FreqtradeBot(LoggingMixin):
(fully_cancelled or
self._check_timed_out(trade.enter_side, order) or
strategy_safe_wrapper(
self.strategy.check_buy_timeout,
(
self.strategy.check_sell_timeout
if trade.is_short else
self.strategy.check_buy_timeout
),
default_retval=False
)(
pair=trade.pair,