lib/sidekiq/testing.rb in sidekiq-5.0.0.beta2 vs lib/sidekiq/testing.rb in sidekiq-5.0.0.beta3
- old
+ new
@@ -314,5 +314,11 @@
end
end
end
end
end
+
+if defined?(::Rails) && Rails.respond_to?(:env) && !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