Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pedant] Add sleep to re-indexing tests #1298

Merged
merged 1 commit into from
Jun 9, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions oc-chef-pedant/lib/pedant/rspec/search_util.rb
Original file line number Diff line number Diff line change
Expand Up @@ -903,6 +903,10 @@ def wait_until_queues_are_empty(i = 10)
return if i == 0
if queues_empty?
puts "RabbitMQ queue is empty (or failed to call rabbitmqctl list_queues)"
# Why? It may be that expander has pulled the item from the queue
# but hasn't posted it to Solr.
puts "Waiting an additional 5 seconds"
sleep 5
else
puts "Waiting for RabbitMQ queue to be empty (#{i} tries remaining)"
sleep 1
Expand Down