Skip to content

Commit

Permalink
tests: increase confluent tests timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
Lancetnik committed Aug 7, 2024
1 parent 3fe4847 commit 92a2988
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
async def test_handle():
async with TestKafkaBroker(broker, with_real=True) as br:
await br.publish({"name": "John", "user_id": 1}, topic="test-topic-confluent")
await handle.wait_call(timeout=10)
await handle.wait_call(timeout=20)
handle.mock.assert_called_once_with({"name": "John", "user_id": 1})

assert handle.mock is None
Expand All @@ -20,6 +20,6 @@ async def test_validation_error():
async with TestKafkaBroker(broker, with_real=True) as br:
with pytest.raises(ValidationError):
await br.publish("wrong message", topic="test-confluent-wrong-fields")
await wrong_handle.wait_call(timeout=10)
await wrong_handle.wait_call(timeout=20)

wrong_handle.mock.assert_called_once_with("wrong message")
2 changes: 1 addition & 1 deletion tests/docs/confluent/ack/test_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ async def test_ack_exc():
AsyncConfluentConsumer, "commit", spy_decorator(AsyncConfluentConsumer.commit)
) as m:
async with TestKafkaBroker(broker, with_real=True), TestApp(app):
await handle.wait_call(10)
await handle.wait_call(20)

assert m.mock.call_count
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async def test_broker_context_confluent():
from faststream.confluent import TestKafkaBroker as TestConfluentKafkaBroker

async with TestConfluentKafkaBroker(broker, with_real=True), TestApp(app):
await handle.wait_call(10)
await handle.wait_call(20)
handle.mock.assert_called_once_with("Hi!")


Expand Down

0 comments on commit 92a2988

Please sign in to comment.