fix broken TestCachingStorageClientStoreQueries (#4074)

pull/4066/head^2
Sandeep Sukhani 4 years ago committed by GitHub
parent f0542c04e1
commit 19aec6e6a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      pkg/storage/chunk/storage/caching_index_client_test.go

@ -435,7 +435,7 @@ func TestCachingStorageClientStoreQueries(t *testing.T) {
})
assert.EqualValues(t, expectedStoreQueries, store.queries)
callbackQueries = callbackQueries[:]
callbackQueries = callbackQueries[:0]
// If we do the query to the cache again, the underlying store shouldn't see it.
err = client.QueryPages(ctx, tc.queries, func(query chunk.IndexQuery, batch chunk.ReadBatch) bool {
callbackQueries = append(callbackQueries, query)

Loading…
Cancel
Save