From 671f3d4c4016034775734c5cfa4074d3e6a60e3c Mon Sep 17 00:00:00 2001 From: Aaron Suggs Date: Sat, 15 Mar 2014 14:51:15 -0400 Subject: [PATCH] [travisci] Fix Errno::ENETUNREACH errors in redis integration tests --- spec/integration/rack_attack_cache_spec.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spec/integration/rack_attack_cache_spec.rb b/spec/integration/rack_attack_cache_spec.rb index d26d70c..06079ce 100644 --- a/spec/integration/rack_attack_cache_spec.rb +++ b/spec/integration/rack_attack_cache_spec.rb @@ -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