Skip to content

tests.unit.pubsub_v1.subscriber.test_streaming_pull_manager: test_close failed #373

@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: c707f81
buildURL: Build Status, Sponge
status: failed

Test output
def test_close():
        (
            manager,
            consumer,
            dispatcher,
            leaser,
            heartbeater,
            scheduler,
        ) = make_running_manager()
    manager.close()

    consumer.stop.assert_called_once()
    leaser.stop.assert_called_once()
    dispatcher.stop.assert_called_once()
  heartbeater.stop.assert_called_once()

tests/unit/pubsub_v1/subscriber/test_streaming_pull_manager.py:568:


_mock_self =

def assert_called_once(_mock_self):
    """assert that the mock was called only once.
    """
    self = _mock_self
    if not self.call_count == 1:
        msg = ("Expected '%s' to have been called once. Called %s times.%s"
               % (self._mock_name or 'mock',
                  self.call_count,
                  self._calls_repr()))
      raise AssertionError(msg)

E AssertionError: Expected 'stop' to have been called once. Called 0 times.

.nox/unit-3-9/lib/python3.9/site-packages/mock/mock.py:891: AssertionError

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: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.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