mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-26 17:23:50 -04:00
Revert "Merge pull request #3125 from alphagov/revert-retry"
This reverts commit6b9a50beff, reversing changes made to33f93dfea2.
This commit is contained in:
@@ -7,7 +7,7 @@ from unittest.mock import Mock, call
|
||||
import pytest
|
||||
|
||||
from app.clients.cbc_proxy import (
|
||||
CBCProxyClient, CBCProxyException, CBCProxyEE, CBCProxyCanary, CBCProxyVodafone, CBCProxyThree, CBCProxyO2
|
||||
CBCProxyClient, CBCProxyRetryableException, CBCProxyEE, CBCProxyCanary, CBCProxyVodafone, CBCProxyThree, CBCProxyO2
|
||||
)
|
||||
from app.utils import DATETIME_FORMAT
|
||||
|
||||
@@ -433,7 +433,7 @@ def test_cbc_proxy_create_and_send_tries_failover_lambda_on_invoke_error_and_rai
|
||||
'StatusCode': 400,
|
||||
}
|
||||
|
||||
with pytest.raises(CBCProxyException) as e:
|
||||
with pytest.raises(CBCProxyRetryableException) as e:
|
||||
cbc_proxy.create_and_send_broadcast(
|
||||
identifier='my-identifier',
|
||||
message_number='0000007b',
|
||||
@@ -482,7 +482,7 @@ def test_cbc_proxy_create_and_send_tries_failover_lambda_on_function_error_and_r
|
||||
}
|
||||
}
|
||||
|
||||
with pytest.raises(CBCProxyException) as e:
|
||||
with pytest.raises(CBCProxyRetryableException) as e:
|
||||
cbc_proxy.create_and_send_broadcast(
|
||||
identifier='my-identifier',
|
||||
message_number='0000007b',
|
||||
|
||||
Reference in New Issue
Block a user