Skip to content

Commit

Permalink
Add spec for unlimited support
Browse files Browse the repository at this point in the history
  • Loading branch information
baelter committed Feb 12, 2025
1 parent 247b0f8 commit 40927f0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions spec/connection_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,17 @@ describe LavinMQ::Server do
end
end
end

# TODO: needs new amqp-client release, current version does not support 0 = unlimited
pending "should allow client to create 'unlimited' channels if the server has no limit" do
config = LavinMQ::Config.new
config.channel_max = 0
with_amqp_server(config: config) do |s|
conn = AMQP::Client::UnsafeClient.new(port: amqp_port(s), channel_max: 1).connect_unsafe
conn.channel
conn.channel
end
end
end

describe "frame_max" do
Expand Down

0 comments on commit 40927f0

Please sign in to comment.