Skip to content

Commit

Permalink
sending message to non-existing queue test case
Browse files Browse the repository at this point in the history
  • Loading branch information
kalaspuff committed Feb 5, 2024
1 parent b1589ac commit 33752f6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/services/aws_sns_sqs_service_with_credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,17 @@ async def _async_publisher() -> None:
wait=True,
)

try:
await tomodachi.sqs_send_message(
self,
self.data_uuid,
queue_name="test-non-existing-queue-{}".format(self.data_uuid),
wait=True,
)
raise Exception("Should not be able to send message to non-existing queue")
except tomodachi.transport.awssnssqs.QueueDoesNotExistError:
pass

await publish(self.data_uuid, "test-topic")
await publish(self.data_uuid, "test-topic-unique")

Expand Down

0 comments on commit 33752f6

Please sign in to comment.