test/job_test.rb in rocketjob-2.1.3 vs test/job_test.rb in rocketjob-3.0.0.alpha
- old
+ new
@@ -38,11 +38,11 @@
assert_equal 'RocketJob::JobException', h['exception']['class_name'], h
assert_equal 'oh no', h['exception']['message'], h
end
end
- describe '.requeue_dead_worker' do
+ describe '.requeue_dead_server' do
it 'requeue jobs from dead workers' do
assert_equal 52, @job2.priority
worker_name = 'server:12345'
@job.worker_name = worker_name
@job.start!
@@ -53,10 +53,10 @@
@job2.start!
assert_equal true, @job2.valid?
assert @job2.running?, @job2.state
@job2.save!
- RocketJob::Job.requeue_dead_worker(worker_name)
+ RocketJob::Job.requeue_dead_server(worker_name)
@job.reload
assert @job.queued?
assert_equal nil, @job.worker_name