Skip to content

Commit 19ae726

Browse files
committed
Simplify the tests
1 parent a64ecee commit 19ae726

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

spec/functional/topic_management_spec.rb

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,11 @@
1212

1313
example "deleting topics" do
1414
topic = generate_topic_name
15-
kafka.create_topic(topic, num_partitions: 3)
1615

16+
kafka.create_topic(topic, num_partitions: 3)
1717
expect(kafka.partitions_for(topic)).to eq 3
18-
kafka.delete_topic(topic)
19-
kafka.instance_variable_get(:@cluster).mark_as_stale!
2018

21-
expect do
22-
kafka.partitions_for(topic)
23-
end.to raise_error(Kafka::LeaderNotAvailable)
19+
kafka.delete_topic(topic)
20+
expect(kafka.has_topic?(topic)).to eql(false)
2421
end
2522
end

0 commit comments

Comments
 (0)