diff --git a/monitor/spec/production_spec.rb b/monitor/spec/production_spec.rb index 060c65b0b..5236173a5 100755 --- a/monitor/spec/production_spec.rb +++ b/monitor/spec/production_spec.rb @@ -96,4 +96,14 @@ describe "Deployed site at #{www}", :js => true, :type => :feature, :capybara_fe in_client(user2) { sign_out_poltergeist } 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