Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Edward Welch <[email protected]>
  • Loading branch information
slim-bean committed Apr 4, 2024
1 parent 24eefe2 commit 47d0798
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions pkg/loki/config_wrapper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -874,6 +874,15 @@ chunk_store_config:
t.Run("for the index queries cache config", func(t *testing.T) {
t.Run("no embedded cache enabled by default if Redis is set", func(t *testing.T) {
configFileString := `---
schema_config:
configs:
- from: 2020-10-24
store: boltdb-shipper
object_store: filesystem
schema: v12
index:
prefix: index_
period: 24h
storage_config:
index_queries_cache_config:
redis:
Expand All @@ -886,6 +895,15 @@ storage_config:

t.Run("no embedded cache enabled by default if Memcache is set", func(t *testing.T) {
configFileString := `---
schema_config:
configs:
- from: 2020-10-24
store: boltdb-shipper
object_store: filesystem
schema: v12
index:
prefix: index_
period: 24h
storage_config:
index_queries_cache_config:
memcached_client:
Expand Down

0 comments on commit 47d0798

Please sign in to comment.