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:
parent
fce05c9d4b
commit
66bb4369fb
1 changed files with 1 additions and 1 deletions
|
@ -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("**************************************************")
|
||||
|
|
Loading…
Reference in a new issue