fixed tests

This commit is contained in:
olegphenomenon 2022-11-07 15:59:48 +02:00
parent 045b5f03ba
commit 48c14b8a39
4 changed files with 6 additions and 3 deletions

View file

@ -26,7 +26,7 @@ module Shunter
logger.info "Request from #{throttled_user.class}/#{throttled_user.id} is coming through throttling"
yield if block_given?
else
logger.info "Too many requests from #{throttled_user.class}/#{throttled_user.id}."
logger.info "Too many requests from #{throttled_user.class}/#{throttled_user.id}." unless Rails.env.test?
raise Shunter::ThrottleError
end
end