1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

handle test edge case

This commit is contained in:
Mike Perham 2020-08-28 13:17:03 -07:00
parent eb78747d68
commit 97b9f255a8

View file

@ -5,7 +5,7 @@ require 'sidekiq/api'
describe Sidekiq::BasicFetch do
before do
@prev_redis = Sidekiq.instance_variable_get(:@redis)
@prev_redis = Sidekiq.instance_variable_get(:@redis) || {}
Sidekiq.redis = { :namespace => 'fuzzy' }
Sidekiq.redis do |conn|
conn.redis.flushdb