From 52f12b704b297091e01fdbcdf90e80abd634d092 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 6 Nov 2023 19:42:16 +0100 Subject: [PATCH] Avoid time colision when creating orders in test avoid flakyness of test. --- tests/plugins/test_protections.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/plugins/test_protections.py b/tests/plugins/test_protections.py index 8fe8cec6b..0228910f2 100644 --- a/tests/plugins/test_protections.py +++ b/tests/plugins/test_protections.py @@ -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)