Skip to content

Commit 9028ed7

Browse files
committed
fix describe topic test
1 parent ad8d8d9 commit 9028ed7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: spec/functional/topic_management_spec.rb

+6-6
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,10 @@ def with_retry(opts = {}, &block)
7070

7171
topic = generate_topic_name
7272
kafka.create_topic(topic, num_partitions: 3)
73-
configs = kafka.describe_topic(topic, %w(retention.ms retention.bytes non_exists))
73+
configs = kafka.describe_topic(topic, %w(retention.ms))
7474

75-
expect(configs.keys).to eql(%w(retention.ms retention.bytes))
75+
expect(configs.keys).to eql(%w(retention.ms))
7676
expect(configs['retention.ms']).to be_a(String)
77-
expect(configs['retention.bytes']).to be_a(String)
7877
end
7978

8079
example "alter a topic configuration" do
@@ -90,8 +89,9 @@ def with_retry(opts = {}, &block)
9089
'max.message.bytes' => '987654'
9190
)
9291

93-
configs = kafka.describe_topic(topic, %w(retention.ms max.message.bytes))
94-
expect(configs['retention.ms']).to eql('1234567')
95-
expect(configs['max.message.bytes']).to eql('987654')
92+
retention_configs = kafka.describe_topic(topic, %w(retention.ms))
93+
expect(retention_configs['retention.ms']).to eql('1234567')
94+
max_msg_bytes_configs = kafka.describe_topic(topic, %w(max.message.bytes))
95+
expect(max_msg_bytes_configs['max.message.bytes']).to eql('987654')
9696
end
9797
end

0 commit comments

Comments
 (0)