mirror of
https://github.com/internetee/registry.git
synced 2025-07-30 14:36:22 +02:00
fixed tests
This commit is contained in:
parent
045b5f03ba
commit
48c14b8a39
4 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue