Adjust tests as send_msg is only called once

This commit is contained in:
Matthias
2020-08-26 22:24:45 +02:00
parent 9c0a3fffd7
commit b2373fccfd
3 changed files with 12 additions and 12 deletions

View File

@@ -975,8 +975,6 @@ class FreqtradeBot:
# Cancelled orders may have the status of 'canceled' or 'closed'
if order['status'] not in ('canceled', 'closed'):
# TODO: this reason will overwrite the input in all cases
# reason = constants.CANCEL_REASON['TIMEOUT']
corder = self.exchange.cancel_order_with_result(trade.open_order_id, trade.pair,
trade.amount)
# Avoid race condition where the order could not be cancelled coz its already filled.