Merge pull request #1277 from GSA/more_backoff

improve exponential backoff while job hunting
This commit is contained in:
Kenneth Kehl
2024-08-16 12:57:00 -07:00
committed by GitHub
5 changed files with 129 additions and 113 deletions

View File

@@ -1815,7 +1815,7 @@ def test_get_all_notifications_for_service_filters_notifications_when_using_post
resp = json.loads(response.get_data(as_text=True))
assert len(resp["notifications"]) == 2
assert resp["notifications"][0]["to"] == "1"
assert resp["notifications"][0]["to"] == ""
assert resp["notifications"][0]["status"] == returned_notification.status
assert response.status_code == 200
@@ -1934,7 +1934,7 @@ def test_get_all_notifications_for_service_including_ones_made_by_jobs(
mocker,
):
mock_s3 = mocker.patch("app.service.rest.get_phone_number_from_s3")
mock_s3.return_value = "1"
mock_s3.return_value = ""
mock_s3 = mocker.patch("app.service.rest.get_personalisation_from_s3")
mock_s3.return_value = {}