Skip to content

samples.snippets.subscriber_test: test_receive_with_delivery_attempts failed #291

@flaky-bot

Description

@flaky-bot

This test failed!

To configure my behavior, see the Flaky Bot documentation.

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


commit: a8c8f53
buildURL: Build Status, Sponge
status: failed

Test output
publisher_client = 
topic = 'projects/python-docs-samples-tests/topics/subscription-test-topic-3.7-6de8422ca9fd4a8582af72286c76b407'
dead_letter_topic = 'projects/python-docs-samples-tests/topics/subscription-test-dead-letter-topic-3.7-6de8422ca9fd4a8582af72286c76b407'
subscription_dlq = 'projects/python-docs-samples-tests/subscriptions/subscription-test-subscription-dlq-3.7-6de8422ca9fd4a8582af72286c76b407'
capsys = <_pytest.capture.CaptureFixture object at 0x7f7ccf021f90>
def test_receive_with_delivery_attempts(
    publisher_client, topic, dead_letter_topic, subscription_dlq, capsys
):
    _publish_messages(publisher_client, topic)
  subscriber.receive_messages_with_delivery_attempts(PROJECT_ID, SUBSCRIPTION_DLQ, 90)

subscriber_test.py:236:


subscriber.py:654: in receive_messages_with_delivery_attempts
streaming_pull_future.result(timeout=timeout)


self = <google.cloud.pubsub_v1.subscriber.futures.StreamingPullFuture object at 0x7f7ccf019cd0>
timeout = 90

def result(self, timeout=None):
    """Resolve the future and return a value where appropriate.

    Args:
        timeout (Union[int, float]): The number of seconds before this call
            times out and raises TimeoutError.

    Raises:
        concurrent.futures.TimeoutError: If the request times out.
        Exception: For undefined exceptions in the underlying
            call execution.
    """
    # Attempt to get the exception if there is one.
    # If there is not one, then we know everything worked, and we can
    # return an appropriate value.
    err = self.exception(timeout=timeout)
    if err is None:
        return self._result
  raise err

E google.api_core.exceptions.NotFound: 404 Resource not found (resource=projects/python-docs-samples-tests/subscriptions/subscription-test-subscription-dlq-3.7-6de8422ca9fd4a8582af72286c76b407).

../../google/cloud/pubsub_v1/futures.py:105: NotFound

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: pubsubIssues related to the googleapis/python-pubsub API.flakybot: flakyTells the Flaky Bot not to close or comment on this issue.flakybot: issueAn issue filed by the Flaky Bot. Should not be added manually.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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions