Skip to content

Commit

Permalink
Unique all workers and ensure symbol queues are stringified via testing
Browse files Browse the repository at this point in the history
API
  • Loading branch information
brandonhilkert committed Nov 13, 2015
1 parent 901bbc7 commit df755bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/sidekiq/testing.rb
Expand Up @@ -261,7 +261,7 @@ def clear_all
# Drain all queued jobs across all workers
def drain_all
while jobs.any?
worker_classes = jobs.map { |job| job["class"] }
worker_classes = jobs.map { |job| job["class"] }.uniq

worker_classes.each do |worker_class|
worker_class.constantize.drain
Expand Down
2 changes: 1 addition & 1 deletion test/test_testing_fake.rb
Expand Up @@ -286,7 +286,7 @@ def perform(a, b)

class AltQueueWorker
include Sidekiq::Worker
sidekiq_options queue: "alt"
sidekiq_options queue: :alt
def perform(a, b)
a + b
end
Expand Down

0 comments on commit df755bb

Please sign in to comment.