mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-01 09:33:05 +00:00
Avoid time colision when creating orders in test
avoid flakyness of test.
This commit is contained in:
@@ -242,7 +242,7 @@ def test_stoploss_guard_perpair(mocker, default_conf, fee, caplog, only_per_pair
|
||||
# 2nd Trade that counts with correct pair
|
||||
generate_mock_trade(
|
||||
pair, fee.return_value, False, exit_reason=ExitType.STOP_LOSS.value,
|
||||
min_ago_open=180, min_ago_close=30, profit_rate=0.9, is_short=is_short
|
||||
min_ago_open=180, min_ago_close=31, profit_rate=0.9, is_short=is_short
|
||||
)
|
||||
|
||||
freqtrade.protections.stop_per_pair(pair)
|
||||
|
||||
Reference in New Issue
Block a user