File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed
Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -476,7 +476,7 @@ def pid
476476 # Returns an array of string pids of all the other workers on this
477477 # machine. Useful when pruning dead workers on startup.
478478 def worker_pids
479- `ps -A -o pid,command | grep resque | grep -v "resque-web"` . split ( "\n " ) . map do |line |
479+ `ps -A -o pid,command | grep [r]esque | grep -v "resque-web"` . split ( "\n " ) . map do |line |
480480 line . split ( ' ' ) [ 0 ]
481481 end
482482 end
Original file line number Diff line number Diff line change 267267 end
268268 end
269269
270- test "worker_pids returns pids" do
271- known_workers = @worker . worker_pids
272- assert !known_workers . empty?
273- end
274-
275270 test "Processed jobs count" do
276271 @worker . work ( 0 )
277272 assert_equal 1 , Resque . info [ :processed ]
You can’t perform that action at this time.
0 commit comments