mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-03-25 09:25:49 +00:00
Non-leak acceptance test should only care about presence, not exact value
This commit is contained in:
parent
4cc8d7d854
commit
7438e5122e
2 changed files with 2 additions and 2 deletions
|
|
@ -29,7 +29,7 @@ describe "MemCacheStore as a cache backend" do
|
|||
get "/", {}, "REMOTE_ADDR" => "1.2.3.4"
|
||||
end
|
||||
|
||||
assert_equal "1", Rack::Attack.cache.store.get(key)
|
||||
assert Rack::Attack.cache.store.get(key)
|
||||
|
||||
sleep 2.1
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ if ActiveSupport.version >= Gem::Version.new("5.2.0")
|
|||
get "/", {}, "REMOTE_ADDR" => "1.2.3.4"
|
||||
end
|
||||
|
||||
assert_equal "1", Rack::Attack.cache.store.fetch(key)
|
||||
assert Rack::Attack.cache.store.fetch(key)
|
||||
|
||||
sleep 2.1
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue