Skip to content

Commit

Permalink
speedup definitions compaction spec by setting a lower value for max_…
Browse files Browse the repository at this point in the history
…deleted_definitions (#858)

Speeds up the should_compact_definitions_during_runtime spec by setting max_deleted_definitions=8 instead of the default 8192.
  • Loading branch information
viktorerlingsson authored Nov 25, 2024
1 parent e47a028 commit a2c64b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/vhost_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ describe LavinMQ::VHost do

it "should compact definitions during runtime" do
with_amqp_server do |s|
LavinMQ::Config.instance.max_deleted_definitions = 8
v = s.vhosts.create("test")
(LavinMQ::Config.instance.max_deleted_definitions - 1).times do
v.declare_queue("q", true, false)
Expand Down

0 comments on commit a2c64b3

Please sign in to comment.