Increase timeout for MacOS pipelines.

This commit is contained in:
Alex Root Junior 2021-02-07 19:20:37 +02:00
parent aebccd1139
commit d189853737

View file

@ -596,7 +596,7 @@ class TestDispatcher:
) as mocked_silent_call_request: ) as mocked_silent_call_request:
response = await dispatcher.feed_webhook_update(bot, RAW_UPDATE, _timeout=0.1) response = await dispatcher.feed_webhook_update(bot, RAW_UPDATE, _timeout=0.1)
assert response is None assert response is None
await asyncio.sleep(0.2) await asyncio.sleep(0.5)
mocked_silent_call_request.assert_awaited() mocked_silent_call_request.assert_awaited()
@pytest.mark.asyncio @pytest.mark.asyncio
@ -608,7 +608,7 @@ class TestDispatcher:
response = await dispatcher.feed_webhook_update(bot, RAW_UPDATE, _timeout=0.1) response = await dispatcher.feed_webhook_update(bot, RAW_UPDATE, _timeout=0.1)
assert response is None assert response is None
await asyncio.sleep(0.2) await asyncio.sleep(0.5)
log_records = [rec.message for rec in caplog.records] log_records = [rec.message for rec in caplog.records]
assert "Cause exception while process update" in log_records[0] assert "Cause exception while process update" in log_records[0]