Skip to content

Commit

Permalink
Merge branch 'master' into fstrozzi
Browse files Browse the repository at this point in the history
  • Loading branch information
pjotrp committed Apr 25, 2012
2 parents c637c81 + 157a287 commit 7783457
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/test_rq.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ def kill_rq()
test_equal(__LINE__,status["jobs"]['total'],2)

# Now add longer jobs
rq_exec('submit "sleep 15"') # does not finish
rq_exec('submit "sleep 30"') # does not finish
sleep(1)
status = rq_status()
test_equal(__LINE__,status['jobs']['pending']+status['jobs']['running'],1)
rq_exec('submit "sleep 15"') # will be removed
rq_exec('submit "sleep 30"') # will be removed from queue
p rq_status()
test_equal(__LINE__,rq_status()['jobs']['total'],4)

Expand Down

0 comments on commit 7783457

Please sign in to comment.