mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-03-29 10:05:51 +00:00
[travisci] Fix Errno::ENETUNREACH errors in redis integration tests
This commit is contained in:
parent
2a7ae7d84d
commit
671f3d4c40
1 changed files with 2 additions and 3 deletions
|
|
@ -86,9 +86,8 @@ describe Rack::Attack::Cache do
|
|||
@cache = Rack::Attack::Cache.new
|
||||
@key = "rack::attack:cache-test-key"
|
||||
@expires_in = 1
|
||||
# Use ip reserved for documentation to ensure it does not exist
|
||||
# http://tools.ietf.org/html/rfc5737
|
||||
@cache.store = ActiveSupport::Cache::RedisStore.new(:host => '203.0.113.0', :port => 3333)
|
||||
# Use presumably unused port for Redis client
|
||||
@cache.store = ActiveSupport::Cache::RedisStore.new(:host => '127.0.0.1', :port => 3333)
|
||||
}
|
||||
describe "write" do
|
||||
it "should not raise exception" do
|
||||
|
|
|
|||
Loading…
Reference in a new issue