Skip to content

Commit

Permalink
Add test to check consumer_logger
Browse files Browse the repository at this point in the history
  • Loading branch information
kumaranvpl committed May 24, 2024
1 parent b9c36a0 commit 2bb6092
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/brokers/confluent/test_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ def subscriber(m):
async with self.patch_broker(consume_broker) as br:
await br.start()

await br.publish_batch(1, "hi", topic=queue)

# ToDo: Fetch consumer logger and assert it
for sub in br._subscribers.values():
consumer_logger = sub.consumer.logger
assert consumer_logger == test_logger

producer_logger = br._producer._producer.logger
assert producer_logger == test_logger
Expand Down

0 comments on commit 2bb6092

Please sign in to comment.