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

Warn when using the Testing API outside of the test env, fixes #3384

This commit is contained in:
Mike Perham 2017-03-13 12:23:32 -07:00
parent e6f59f6b40
commit 9e7cc9afda

View file

@ -316,3 +316,9 @@ module Sidekiq
end
end
end
if defined?(::Rails) && !Rails.env.test?
puts("**************************************************")
puts("⛔️ WARNING: Sidekiq testing API enabled, but this is not the test environment. Your jobs will not go to Redis.")
puts("**************************************************")
end