Rack::Attack.clear! resets tracks

Fixes flaky tests like
https://travis-ci.org/kickstarter/rack-attack/builds/25438931
This commit is contained in:
Aaron Suggs 2014-05-18 20:45:56 -04:00
parent 0e599a4dd6
commit f9eabed6d4

View file

@ -73,7 +73,7 @@ class Rack::Attack
end
def clear!
@whitelists, @blacklists, @throttles = {}, {}, {}
@whitelists, @blacklists, @throttles, @tracks = {}, {}, {}, {}
end
end