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:
parent
eb78747d68
commit
97b9f255a8
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue