Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 426eeed

Browse files
authored
test(esm/sqs): Skip flaky test_report_batch_item_failures test (#12713)
1 parent 9692260 commit 426eeed

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎tests/aws/services/lambda_/event_source_mapping/test_lambda_integration_sqs.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,9 @@ def receive_dlq():
415415

416416

417417
@markers.aws.validated
418+
@pytest.mark.skip(
419+
reason="Flaky as an SQS queue will not always return messages in a ReceiveMessages call."
420+
)
418421
def test_report_batch_item_failures(
419422
create_lambda_function,
420423
sqs_create_queue,
@@ -538,6 +541,7 @@ def test_report_batch_item_failures(
538541
# now wait for the first invocation result which is expected to have processed message 1 we wait half the retry
539542
# interval to wait long enough for the message to appear, but short enough to check that the DLQ is empty after
540543
# the first attempt.
544+
# FIXME: We cannot assume that the queue will always return a message in the given time-interval.
541545
first_invocation = aws_client.sqs.receive_message(
542546
QueueUrl=destination_url, WaitTimeSeconds=int(retry_timeout / 2), MaxNumberOfMessages=1
543547
)

0 commit comments

Comments
 (0)