mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-03-25 09:25:49 +00:00
Rack::Attack.clear! resets tracks
Fixes flaky tests like https://travis-ci.org/kickstarter/rack-attack/builds/25438931
This commit is contained in:
parent
0e599a4dd6
commit
f9eabed6d4
1 changed files with 1 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ class Rack::Attack
|
|||
end
|
||||
|
||||
def clear!
|
||||
@whitelists, @blacklists, @throttles = {}, {}, {}
|
||||
@whitelists, @blacklists, @throttles, @tracks = {}, {}, {}, {}
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue