8000 Long poll for 20s instead of 18s · localstack/localstack@340a963 · GitHub
[go: up one dir, main page]

Skip to content

Commit 340a963

Browse files
committed
Long poll for 20s instead of 18s
1 parent acb6b2c commit 340a963

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ def test_report_batch_item_failures(
530530
# now wait for the second invocation result which is expected to have processed message 2 and 3
531531
# Since we are re-queuing twice, with a visiblity timeout of 8s, this should instead be waiting for 20s => 8s x 2 retries (+ 4s margin).
532532
# See AWS docs: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_ReceiveMessage.html#API_ReceiveMessage_RequestSyntax
533-
second_timeout_with_margin = (visibility_timeout * 2) + 2
533+
second_timeout_with_margin = (visibility_timeout * 2) + 4
534534
assert second_timeout_with_margin <= 20, (
535535
"An SQS ReceiveMessage operation cannot wait for more than 20s"
536536
)

0 commit comments

Comments
 (0)
0