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

Don't print warning during our test suite

This commit is contained in:
Mike Perham 2020-06-19 08:59:36 -07:00
parent fce05c9d4b
commit 66bb4369fb

View file

@ -337,7 +337,7 @@ module Sidekiq
Sidekiq::Extensions::DelayedModel.extend(TestingExtensions) if defined?(Sidekiq::Extensions::DelayedModel)
end
if defined?(::Rails) && Rails.respond_to?(:env) && !Rails.env.test?
if defined?(::Rails) && Rails.respond_to?(:env) && !Rails.env.test? && !$TESTING
puts("**************************************************")
puts("⛔️ WARNING: Sidekiq testing API enabled, but this is not the test environment. Your jobs will not go to Redis.")
puts("**************************************************")