diff --git a/app/dao/provider_details_dao.py b/app/dao/provider_details_dao.py index eaccfdac15..ec8dbfed2d 100644 --- a/app/dao/provider_details_dao.py +++ b/app/dao/provider_details_dao.py @@ -111,7 +111,7 @@ def dao_adjust_provider_priority_back_to_resting_points(): each towards their defined resting points (set in SMS_PROVIDER_RESTING_POINTS in config.py). """ amount_to_reduce_by = 10 - time_threshold = timedelta(hours=1) + time_threshold = timedelta(minutes=15) providers = _get_sms_providers_for_update(time_threshold) diff --git a/tests/app/dao/test_provider_details_dao.py b/tests/app/dao/test_provider_details_dao.py index 3849f2d0d0..6be52aab6c 100644 --- a/tests/app/dao/test_provider_details_dao.py +++ b/tests/app/dao/test_provider_details_dao.py @@ -285,7 +285,7 @@ def test_adjust_provider_priority_back_to_resting_points_updates_all_providers( dao_adjust_provider_priority_back_to_resting_points() - mock_get_providers.assert_called_once_with(timedelta(hours=1)) + mock_get_providers.assert_called_once_with(timedelta(minutes=15)) mock_adjust.assert_any_call(mmg, new_mmg) mock_adjust.assert_any_call(firetext, new_firetext)