Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Dec 31, 2023. It is now read-only.
This repository was archived by the owner on Dec 31, 2023. It is now read-only.

tests.unit.gapic.monitoring_v3.test_uptime_check_service: test_list_uptime_check_ips_async_pager failed #436

Copy link
Copy link
Closed
@flaky-bot

Description

@flaky-bot
Issue body actions

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

Test output
@pytest.mark.asyncio
    async def test_list_uptime_check_ips_async_pager():
        client = UptimeCheckServiceAsyncClient(
            credentials=ga_credentials.AnonymousCredentials,
        )
    # Mock the actual call within the gRPC stub, and fake the request.
    with mock.patch.object(
        type(client.transport.list_uptime_check_ips),
        "__call__",
        new_callable=mock.AsyncMock,
    ) as call:
        # Set the response to a series of pages.
        call.side_effect = (
            uptime_service.ListUptimeCheckIpsResponse(
                uptime_check_ips=[
                    uptime.UptimeCheckIp(),
                    uptime.UptimeCheckIp(),
                    uptime.UptimeCheckIp(),
                ],
                next_page_token="abc",
            ),
            uptime_service.ListUptimeCheckIpsResponse(
                uptime_check_ips=[],
                next_page_token="def",
            ),
            uptime_service.ListUptimeCheckIpsResponse(
                uptime_check_ips=[
                    uptime.UptimeCheckIp(),
                ],
                next_page_token="ghi",
            ),
            uptime_service.ListUptimeCheckIpsResponse(
                uptime_check_ips=[
                    uptime.UptimeCheckIp(),
                    uptime.UptimeCheckIp(),
                ],
            ),
            RuntimeError,
        )
        async_pager = await client.list_uptime_check_ips(
            request={},
        )
        assert async_pager.next_page_token == "abc"
        responses = []
        async for response in async_pager:  # pragma: no branch
            responses.append(response)

        assert len(responses) == 6
      assert all(isinstance(i, uptime.UptimeCheckIp) for i in responses)

E assert False
E + where False = all(<generator object test_list_uptime_check_ips_async_pager.. at 0x7f16be8439e0>)

tests/unit/gapic/monitoring_v3/test_uptime_check_service.py:2399: AssertionError

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: monitoringIssues related to the googleapis/python-monitoring API.Issues related to the googleapis/python-monitoring API.flakybot: issueAn issue filed by the Flaky Bot. Should not be added manually.An 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.Important 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.Error 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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.