You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am receiving the following error when running my tests (MiniTest via rake test command): LoadError: cannot load such file -- mock_redis
Some excerpts of how I use sidekiq-unique-jobs:
Gemfile:
# Use sidekiq for background tasksgem'sidekiq'# Use sidekiq enhancement for unique jobsgem'sidekiq-unique-jobs'
Worker:
classMyWorkerincludeSidekiq::Workersidekiq_optionsqueue: :my_queue,unique: true,unique_job_expiration: 24 * 60 * 60defperform(user_id)# some codeendend
test_helper:
require'sidekiq/testing'Sidekiq::Testing.fake!
I'm not sure if I'm doing something wrong here or if there is an issue with the combination of Rails 4.1.4, most current sidekiq and sidekiq-unique-jobs gems. Can anybody help me or fix this issue?
I think it is an issue because if I remove this gem from the project then all tests succeed.
Thanks for your help! :)
The text was updated successfully, but these errors were encountered:
If you want to test uniqueness in your app this is the easiest way to do it. If you don't want to use that gem check our test suite for how to test against real redis.
I am receiving the following error when running my tests (MiniTest via
rake test
command):LoadError: cannot load such file -- mock_redis
Some excerpts of how I use sidekiq-unique-jobs:
Gemfile:
Worker:
test_helper:
I'm not sure if I'm doing something wrong here or if there is an issue with the combination of Rails 4.1.4, most current sidekiq and sidekiq-unique-jobs gems. Can anybody help me or fix this issue?
I think it is an issue because if I remove this gem from the project then all tests succeed.
Thanks for your help! :)
The text was updated successfully, but these errors were encountered: