From ddb72cff0ffa0cf755c2f103ae6ef8808835c46f Mon Sep 17 00:00:00 2001 From: Prowler Bot Date: Fri, 17 Jan 2025 18:36:21 +0100 Subject: [PATCH] fix(sqs): fix flaky test (#6594) Co-authored-by: Daniel Barranquero <74871504+danibarranqueroo@users.noreply.github.com> --- .../sqs_queues_not_publicly_accessible_test.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/providers/aws/services/sqs/sqs_queues_not_publicly_accessible/sqs_queues_not_publicly_accessible_test.py b/tests/providers/aws/services/sqs/sqs_queues_not_publicly_accessible/sqs_queues_not_publicly_accessible_test.py index 6f0c5197a5d..d9b5c0ba1df 100644 --- a/tests/providers/aws/services/sqs/sqs_queues_not_publicly_accessible/sqs_queues_not_publicly_accessible_test.py +++ b/tests/providers/aws/services/sqs/sqs_queues_not_publicly_accessible/sqs_queues_not_publicly_accessible_test.py @@ -134,7 +134,10 @@ def test_queues_not_public(self): ) with mock.patch( "prowler.providers.aws.services.sqs.sqs_service.SQS", - sqs_client, + new=sqs_client, + ), mock.patch( + "prowler.providers.aws.services.sqs.sqs_client.sqs_client", + new=sqs_client, ): from prowler.providers.aws.services.sqs.sqs_queues_not_publicly_accessible.sqs_queues_not_publicly_accessible import ( sqs_queues_not_publicly_accessible,