Use bootstrap_servers interface in tests
This commit is contained in:
@@ -69,7 +69,7 @@ class TestConsumerIntegration(KafkaIntegrationTestCase):
|
|||||||
def kafka_consumer(self, **configs):
|
def kafka_consumer(self, **configs):
|
||||||
brokers = '%s:%d' % (self.server.host, self.server.port)
|
brokers = '%s:%d' % (self.server.host, self.server.port)
|
||||||
consumer = KafkaConsumer(self.topic,
|
consumer = KafkaConsumer(self.topic,
|
||||||
metadata_broker_list=brokers,
|
bootstrap_servers=brokers,
|
||||||
**configs)
|
**configs)
|
||||||
return consumer
|
return consumer
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user