Merge pull request #24967 from filimonov/fix_port_in_kafka_test

Fix the test after #20393
This commit is contained in:
alexey-milovidov 2021-06-06 15:11:49 +03:00 committed by GitHub
commit 8b99fa049e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1320,7 +1320,8 @@ def test_librdkafka_compression(kafka_cluster):
logging.debug(('Check compression {}'.format(compression_type)))
topic_name = 'test_librdkafka_compression_{}'.format(compression_type)
admin_client = admin.AdminClient({'bootstrap.servers': 'localhost:9092'})
admin_client = admin.AdminClient({'bootstrap.servers': "localhost:{}".format(kafka_cluster.kafka_port)})
topic = admin.NewTopic(topic=topic_name, num_partitions=1, replication_factor=1, config={
'compression.type': compression_type,
})