Skip to content

Commit

Permalink
Don't print warning during our test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Jun 19, 2020
1 parent fce05c9 commit 66bb436
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sidekiq/testing.rb
Expand Up @@ -337,7 +337,7 @@ def jobs_for(klass)
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("**************************************************")
Expand Down

0 comments on commit 66bb436

Please sign in to comment.