Skip to content

Commit 358fb5f

Browse files
committed
Fix producer tests max_usable_produce_magic
1 parent c02d30f commit 358fb5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_producer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def test_kafka_producer_proper_record_metadata(kafka_broker, compression):
111111
retries=5,
112112
max_block_ms=30000,
113113
compression_type=compression) as producer:
114-
magic = producer._max_usable_produce_magic()
114+
magic = producer.max_usable_produce_magic(producer.config['api_version'])
115115

116116
# record headers are supported in 0.11.0
117117
if env_kafka_version() < (0, 11, 0):

0 commit comments

Comments
 (0)