Skip to content

Commit

Permalink
fixup! expect lost leadership in spec
Browse files Browse the repository at this point in the history
  • Loading branch information
carlhoerberg committed Dec 27, 2024
1 parent 1cd7b8a commit 0667e3e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions spec/clustering_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,9 @@ describe LavinMQ::Clustering::Client do
sleep 0.5.seconds
spawn(name: "failover1") do
controller1.run
rescue LavinMQ::Launcher::LostLeadership
# expected
end
spawn(name: "failover2") do
controller2.run
rescue LavinMQ::Launcher::LostLeadership
# expected
end
sleep 0.1.seconds
leader = listen.receive
Expand Down
2 changes: 0 additions & 2 deletions src/lavinmq/launcher.cr
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ module LavinMQ
setup_log_exchange
end

class LostLeadership < Exception; end

def start : self
listen
SystemD.notify_ready
Expand Down

0 comments on commit 0667e3e

Please sign in to comment.