VRFS-1741 - this checks resque queues, will fail if any > 5

This commit is contained in:
Anthony Davis 2014-07-17 20:35:12 -05:00
parent 69aecb1016
commit 31872174e3
1 changed files with 10 additions and 0 deletions

View File

@ -96,4 +96,14 @@ describe "Deployed site at #{www}", :js => true, :type => :feature, :capybara_fe
in_client(user2) { sign_out_poltergeist } in_client(user2) { sign_out_poltergeist }
end end
let(:queue_limit) { 5 }
it "should not find any stuck workers in resque queues" do
page.driver.basic_authorize('jamjam','blueberryjam')
visit '/admin/resque/queues'
page.all('tr:not(.failure) .size').each do |job_queue|
expect(job_queue.text.to_i).to be < queue_limit
end
#this (maybe mistakenly) ignores the .failure queue, since it can be in the hundreds - VRFS-1930
end
end end