Skip to content

tests.unit.pubsub_v1.subscriber.test_streaming_pull_manager: test_close_inactive_consumer failed #352

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

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

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

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


_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-7/lib/python3.7/site-packages/mock/mock.py:891: AssertionError

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.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