Update test.py

This commit is contained in:
filimonov 2021-06-04 15:30:25 +02:00 committed by GitHub
parent e11f7db28b
commit 74ae079b19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1285,7 +1285,9 @@ def test_kafka_recreate_kafka_table(kafka_cluster):
'''
Checks that materialized view work properly after dropping and recreating the Kafka table.
'''
admin_client = KafkaAdminClient(bootstrap_servers="localhost:9092")
# line for backporting:
# admin_client = KafkaAdminClient(bootstrap_servers="localhost:9092")
admin_client = KafkaAdminClient(bootstrap_servers="localhost:{}".format(kafka_cluster.kafka_port))
topic_list = []
topic_list.append(NewTopic(name="recreate_kafka_table", num_partitions=6, replication_factor=1))