Skip to content

Commit

Permalink
config spec
Browse files Browse the repository at this point in the history
  • Loading branch information
mensfeld committed Nov 6, 2023
1 parent a55b3d3 commit 5f9112a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/rdkafka/config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,14 @@ def call(stats); end
consumer.close
end

it "should create a consumer with consumer_poll_set set to false" do
config = rdkafka_consumer_config
config.consumer_poll_set = false
consumer = config.consumer
expect(consumer).to be_a Rdkafka::Consumer
consumer.close
end

it "should raise an error when creating a consumer with invalid config" do
config = Rdkafka::Config.new('invalid.key' => 'value')
expect {
Expand Down

0 comments on commit 5f9112a

Please sign in to comment.