diff --git a/tests/aws/services/lambda_/event_source_mapping/test_lambda_integration_sqs.py b/tests/aws/services/lambda_/event_source_mapping/test_lambda_integration_sqs.py index 76a62c60ef94e..603752f0b650b 100644 --- a/tests/aws/services/lambda_/event_source_mapping/test_lambda_integration_sqs.py +++ b/tests/aws/services/lambda_/event_source_mapping/test_lambda_integration_sqs.py @@ -415,6 +415,9 @@ def receive_dlq(): @markers.aws.validated +@pytest.mark.skip( + reason="Flaky as an SQS queue will not always return messages in a ReceiveMessages call." +) def test_report_batch_item_failures( create_lambda_function, sqs_create_queue, @@ -538,6 +541,7 @@ def test_report_batch_item_failures( # now wait for the first invocation result which is expected to have processed message 1 we wait half the retry # interval to wait long enough for the message to appear, but short enough to check that the DLQ is empty after # the first attempt. + # FIXME: We cannot assume that the queue will always return a message in the given time-interval. first_invocation = aws_client.sqs.receive_message( QueueUrl=destination_url, WaitTimeSeconds=int(retry_timeout / 2), MaxNumberOfMessages=1 )