mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Fix broken tests due to #631 changing global state
This commit is contained in:
parent
638514c08a
commit
00af937b8f
1 changed files with 2 additions and 3 deletions
|
@ -18,19 +18,18 @@ class TestRedisConnection < MiniTest::Unit::TestCase
|
|||
end
|
||||
|
||||
it "uses :namespace from Sidekiq.options" do
|
||||
Sidekiq.options = {:namespace => "xxx"}
|
||||
Sidekiq.options[:namespace] = "xxx"
|
||||
pool = Sidekiq::RedisConnection.create
|
||||
assert_equal "xxx", pool.checkout.namespace
|
||||
end
|
||||
|
||||
it "uses given :namespace over :namespace from Sidekiq.options" do
|
||||
Sidekiq.options = {:namespace => "xxx"}
|
||||
Sidekiq.options[:namespace] = "xxx"
|
||||
pool = Sidekiq::RedisConnection.create(:namespace => "yyy")
|
||||
assert_equal "yyy", pool.checkout.namespace
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
describe ".determine_redis_provider" do
|
||||
|
|
Loading…
Reference in a new issue