Permalink
Browse files

Clarify why this test exists.

  • Loading branch information...
1 parent dab117f commit 6017be72ef81baf103b0a7591cac7c74fb13341a @joakimk joakimk committed Sep 28, 2016
Showing with 3 additions and 1 deletion.
  1. +3 −1 test/worker_test.rb
View
@@ -744,7 +744,9 @@ def self.perform
end
end
- it "reports errors correctly when an error occurs while pruning workers" do
+ # This was added because PruneDeadWorkerDirtyExit does not have a backtrace,
+ # and the error handling code did not account for that.
+ it "correctly reports errors that occur while pruning workers" do
workerA = Resque::Worker.new(:jobs)
workerA.to_s = "bar:3:jobs"
workerA.register_worker

0 comments on commit 6017be7

Please sign in to comment.