From b427c7ff136fb017d75eb5f59b8adf98dfb306ac Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 12 Aug 2022 07:28:19 +0000 Subject: [PATCH] Use diff. close time to avoid buggy behavior --- 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 7a21b2ed6..8a5356b3e 100644 --- a/tests/plugins/test_protections.py +++ b/tests/plugins/test_protections.py @@ -336,7 +336,7 @@ def test_LowProfitPairs(mocker, default_conf, fee, caplog, only_per_side): Trade.query.session.add(generate_mock_trade( 'XRP/BTC', fee.return_value, False, exit_reason=ExitType.STOP_LOSS.value, - min_ago_open=110, min_ago_close=20, profit_rate=0.8, + min_ago_open=110, min_ago_close=21, profit_rate=0.8, )) Trade.commit()