Skip to content
This repository was archived by the owner on Mar 9, 2026. It is now read-only.
This repository was archived by the owner on Mar 9, 2026. It is now read-only.

samples.snippets.subscriber_test: test_receive_with_delivery_attempts failed #240

@flaky-bot

Description

@flaky-bot

This test failed!

To configure my behavior, see the Build Cop Bot documentation.

If I'm commenting on this issue too often, add the buildcop: quiet label and
I will stop commenting.


commit: 94d738c
buildURL: Build Status, Sponge
status: failed

Test output
publisher_client = 
topic = 'projects/python-docs-samples-tests/topics/subscription-test-topic-1269d3d1c92a40d5ab51e6621f50850d'
subscription_dlq = 'projects/python-docs-samples-tests/subscriptions/subscription-test-subscription-dlq-1269d3d1c92a40d5ab51e6621f50850d'
dead_letter_topic = 'projects/python-docs-samples-tests/topics/subscription-test-dead-letter-topic-1269d3d1c92a40d5ab51e6621f50850d'
capsys = <_pytest.capture.CaptureFixture object at 0x7f0f46956f50>
def test_receive_with_delivery_attempts(
    publisher_client, topic, subscription_dlq, dead_letter_topic, capsys
):
    _publish_messages(publisher_client, topic)

    subscriber.receive_messages_with_delivery_attempts(PROJECT, SUBSCRIPTION_DLQ, 10)

    out, _ = capsys.readouterr()
    assert "Listening" in out
    assert subscription_dlq in out
  assert "Received message: " in out

E AssertionError: assert 'Received message: ' in 'Listening for messages on projects/python-docs-samples-tests/subscriptions/subscription-test-subscription-dlq-1269d3d1c92a40d5ab51e6621f50850d..\n\n'

subscriber_test.py:360: AssertionError

Metadata

Metadata

Assignees

Labels

api: pubsubIssues related to the googleapis/python-pubsub API.priority: p2Moderately-important priority. Fix may not be included in next release.samplesIssues that are directly related to samples.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions