lib/jets/preheat.rb in jets-2.3.0 vs lib/jets/preheat.rb in jets-2.3.1

- old
+ new

@@ -21,10 +21,10 @@ @options[:lambda_proxy] = false # do not transform controller event from {"event": "1"} to {"queryStringParameters":{"_prewarm":"1"}} end # Makes remote call to the Lambda function. def warm(function_name) - Jets::Commands::Call.new(function_name, '{"_prewarm": "1"}', @options).run unless ENV['TEST'] + Jets::Commands::Call.new(function_name, '{"_prewarm": "1"}', @options).run unless Jets.env.test? end # Loop through all methods for each class and makes special prewarm call to each method. def warm_all threads = [] \ No newline at end of file