Skip to content

Commit

Permalink
chore: fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Lancetnik committed Dec 16, 2024
1 parent 6e60761 commit ab47f76
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/opentelemetry/kafka/test_kafka.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,17 +261,19 @@ async def handler(m, baggage: CurrentBaggage):

@pytest.mark.kafka
class TestPublishWithTelemetry(TestPublish):
def get_broker(self, apply_types: bool = False):
def get_broker(self, apply_types: bool = False, **kwargs):
return KafkaBroker(
middlewares=(KafkaTelemetryMiddleware(),),
apply_types=apply_types,
**kwargs,
)


@pytest.mark.kafka
class TestConsumeWithTelemetry(TestConsume):
def get_broker(self, apply_types: bool = False):
def get_broker(self, apply_types: bool = False, **kwargs):
return KafkaBroker(
middlewares=(KafkaTelemetryMiddleware(),),
apply_types=apply_types,
**kwargs,
)

0 comments on commit ab47f76

Please sign in to comment.