mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-31 23:26:23 -05:00
dont try and send broadccast event if it's already in technical-failure
this gives us an option to manually set a status in the database and avoid things being stuck in a retry loop forever
This commit is contained in:
@@ -709,8 +709,10 @@ def test_check_provider_message_should_send_doesnt_raise_if_newer_event_not_acke
|
||||
BroadcastProviderMessageStatus.ACK,
|
||||
BroadcastProviderMessageStatus.ERR,
|
||||
|
||||
# TODO: Make this case fail - so we have a way of aborting a send if it's stuck in retry loop
|
||||
BroadcastProviderMessageStatus.TECHNICAL_FAILURE,
|
||||
pytest.param(
|
||||
BroadcastProviderMessageStatus.TECHNICAL_FAILURE,
|
||||
marks=pytest.mark.xfail(raises=CBCProxyFatalException)
|
||||
),
|
||||
])
|
||||
def test_check_provider_message_should_send_doesnt_raise_if_current_event_already_has_provider_message(
|
||||
sample_template,
|
||||
|
||||
Reference in New Issue
Block a user