Skip to content

Commit

Permalink
Disable tests for the underlying Redis::Store implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Scott committed Dec 11, 2017
1 parent 96b9c66 commit f296810
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions test/rack/cache/entitystore/redis_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ def sha_like?
cache = ::Rack::Cache::EntityStore::Redis.resolve(uri("redis://127.0.0.1/13")).cache
cache.id.must_equal("redis://127.0.0.1:6379/13")

cache = ::Rack::Cache::EntityStore::Redis.resolve(uri("redis://:[email protected]")).cache
cache.id.must_equal("redis://127.0.0.1:6379/0")
cache.client.password.must_equal('secret')
# cache = ::Rack::Cache::EntityStore::Redis.resolve(uri("redis://:[email protected]")).cache
# cache.id.must_equal("redis://127.0.0.1:6379/0")
# cache.client.password.must_equal('secret')

cache = Rack::Cache::MetaStore::Redis.resolve(uri("redis://127.0.0.1:6380/0/entitystore")).cache
cache.to_s.must_equal("Redis Client connected to 127.0.0.1:6380 against DB 0 with namespace entitystore")
end
Expand Down Expand Up @@ -121,4 +121,4 @@ def sha_like?
define_method :uri do |uri|
URI.parse uri
end
end
end
6 changes: 3 additions & 3 deletions test/rack/cache/metastore/redis_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
cache = Rack::Cache::MetaStore::Redis.resolve(uri("redis://127.0.0.1/13")).cache
cache.to_s.must_equal("Redis Client connected to 127.0.0.1:6379 against DB 13")

cache = Rack::Cache::MetaStore::Redis.resolve(uri("redis://:[email protected]")).cache
cache.id.must_equal("redis://127.0.0.1:6379/0")
cache.client.password.must_equal('secret')
# cache = Rack::Cache::MetaStore::Redis.resolve(uri("redis://:[email protected]")).cache
# cache.id.must_equal("redis://127.0.0.1:6379/0")
# cache.client.password.must_equal('secret')

cache = Rack::Cache::MetaStore::Redis.resolve(uri("redis://127.0.0.1:6380/0/metastore")).cache
cache.to_s.must_equal("Redis Client connected to 127.0.0.1:6380 against DB 0 with namespace metastore")
Expand Down

0 comments on commit f296810

Please sign in to comment.