mirror of
https://github.com/GSA/notifications-api.git
synced 2026-05-06 09:08:24 -04:00
change countdown from 30 to 60 seconds for message sends to better match batch insert timing
This commit is contained in:
@@ -311,10 +311,10 @@ def test_replay_created_notifications(notify_db_session, sample_service, mocker)
|
||||
|
||||
replay_created_notifications()
|
||||
email_delivery_queue.assert_called_once_with(
|
||||
[str(old_email.id)], queue="send-email-tasks", countdown=30
|
||||
[str(old_email.id)], queue="send-email-tasks", countdown=60
|
||||
)
|
||||
sms_delivery_queue.assert_called_once_with(
|
||||
[str(old_sms.id)], queue="send-sms-tasks", countdown=30
|
||||
[str(old_sms.id)], queue="send-sms-tasks", countdown=60
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -434,7 +434,7 @@ def test_should_send_template_to_correct_sms_task_and_persist(
|
||||
assert persisted_notification.personalisation == {}
|
||||
assert persisted_notification.notification_type == NotificationType.SMS
|
||||
mocked_deliver_sms.assert_called_once_with(
|
||||
[str(persisted_notification.id)], queue="send-sms-tasks", countdown=30
|
||||
[str(persisted_notification.id)], queue="send-sms-tasks", countdown=60
|
||||
)
|
||||
|
||||
|
||||
@@ -470,7 +470,7 @@ def test_should_save_sms_if_restricted_service_and_valid_number(
|
||||
assert not persisted_notification.personalisation
|
||||
assert persisted_notification.notification_type == NotificationType.SMS
|
||||
provider_tasks.deliver_sms.apply_async.assert_called_once_with(
|
||||
[str(persisted_notification.id)], queue="send-sms-tasks", countdown=30
|
||||
[str(persisted_notification.id)], queue="send-sms-tasks", countdown=60
|
||||
)
|
||||
|
||||
|
||||
@@ -598,7 +598,7 @@ def test_should_save_sms_template_to_and_persist_with_job_id(sample_job, mocker)
|
||||
assert persisted_notification.notification_type == NotificationType.SMS
|
||||
|
||||
provider_tasks.deliver_sms.apply_async.assert_called_once_with(
|
||||
[str(persisted_notification.id)], queue="send-sms-tasks", countdown=30
|
||||
[str(persisted_notification.id)], queue="send-sms-tasks", countdown=60
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user