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

fix tests

This commit is contained in:
Mike Perham 2022-09-15 13:07:43 -07:00
parent 2e4766b64d
commit 9ee55e9a02
No known key found for this signature in database
2 changed files with 4 additions and 3 deletions

View file

@ -65,7 +65,7 @@ describe Sidekiq::Capsule do
assert_equal 2, @config.capsules.size
assert_equal %w[default testy], @config.capsules.values.map(&:name).sort
assert_equal %w[default testy], @config.capsules.keys.sort
assert_equal 12, @config.total_concurrency
assert_equal 7, @config.total_concurrency
cap = @config.capsule("testy")
cap1 = @config.capsule(:testy)
assert cap

View file

@ -61,10 +61,11 @@ describe Sidekiq::RedisConnection do
assert_equal 12, @config.default_capsule.redis_pool.size
end
it "changes client pool sizes with ENV" do
it "does not change client pool sizes with ENV" do
# Only Sidekiq::CLI looks at ENV
ENV["RAILS_MAX_THREADS"] = "9"
pool = client_connection
assert_equal 9, pool.size
assert_equal 5, pool.size
ensure
ENV.delete("RAILS_MAX_THREADS")
end