Skip to content

Commit

Permalink
shorter sleeps in spec
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorerlingsson committed Sep 20, 2024
1 parent a726357 commit 317e0b9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions spec/upstream_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -238,16 +238,14 @@ describe LavinMQ::Federation::Upstream do

wait_for { downstream_vhost.queues["downstream_q"].policy.try(&.name) == "FE" }
wait_for { upstream.links.first?.try &.state.running? }

sleep 1.seconds
sleep 0.1.seconds

# Disconnect the federation link
upstream_vhost.connections.each do |conn|
next unless conn.client_name.starts_with?("Federation link")
conn.close
end

sleep 1.seconds
sleep 0.1.seconds

# wait for federation link to be reconnected
wait_for { upstream.links.first?.try &.state.running? }
Expand Down

0 comments on commit 317e0b9

Please sign in to comment.