googleapis/python-dialogflow-cx

tests.unit.gapic.dialogflowcx_v3.test_intents: test_list_intents_async_pager failed

flaky-bot opened this issue · 2 comments

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

Test output
@pytest.mark.asyncio
    async def test_list_intents_async_pager():
        client = IntentsAsyncClient(
            credentials=ga_credentials.AnonymousCredentials,
        )
    # Mock the actual call within the gRPC stub, and fake the request.
    with mock.patch.object(
        type(client.transport.list_intents), "__call__", new_callable=mock.AsyncMock
    ) as call:
        # Set the response to a series of pages.
        call.side_effect = (
            intent.ListIntentsResponse(
                intents=[
                    intent.Intent(),
                    intent.Intent(),
                    intent.Intent(),
                ],
                next_page_token="abc",
            ),
            intent.ListIntentsResponse(
                intents=[],
                next_page_token="def",
            ),
            intent.ListIntentsResponse(
                intents=[
                    intent.Intent(),
                ],
                next_page_token="ghi",
            ),
            intent.ListIntentsResponse(
                intents=[
                    intent.Intent(),
                    intent.Intent(),
                ],
            ),
            RuntimeError,
        )
        async_pager = await client.list_intents(
            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, intent.Intent) for i in responses)

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

tests/unit/gapic/dialogflowcx_v3/test_intents.py:979: AssertionError

Looks like this issue is flaky. 😟

I'm going to leave this open and stop commenting.

A human should fix and close this.


When run at the same commit (7756cb0), this test passed in one build (Build Status, Sponge) and failed in another build (Build Status, Sponge).

Looks like this issue is flaky. 😟

I'm going to leave this open and stop commenting.

A human should fix and close this.


When run at the same commit (7756cb0), this test passed in one build (Build Status, Sponge) and failed in another build (Build Status, Sponge).