mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-04-27 15:07:41 +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
|
end
|
||||||
|
|
||||||
def clear!
|
def clear!
|
||||||
@whitelists, @blacklists, @throttles = {}, {}, {}
|
@whitelists, @blacklists, @throttles, @tracks = {}, {}, {}, {}
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue