Skip to content

Commit 43d0546

Browse files
committed
fix lint
Signed-off-by: SungJin1212 <tjdwls1201@gmail.com>
1 parent d0a1a33 commit 43d0546

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pkg/querier/parquet_queryable_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ func Test_Cache_LRUEviction(t *testing.T) {
905905
val2 := cache.Get("key2") // miss
906906
require.Equal(t, "", val2)
907907

908-
require.NoError(t, testutil.GatherAndCompare(reg, bytes.NewBufferString(fmt.Sprintf(`
908+
require.NoError(t, testutil.GatherAndCompare(reg, bytes.NewBufferString(`
909909
# HELP cortex_parquet_queryable_cache_evictions_total Total number of parquet cache evictions
910910
# TYPE cortex_parquet_queryable_cache_evictions_total counter
911911
cortex_parquet_queryable_cache_evictions_total{name="test"} 1
@@ -918,7 +918,7 @@ func Test_Cache_LRUEviction(t *testing.T) {
918918
# HELP cortex_parquet_queryable_cache_misses_total Total number of parquet cache misses
919919
# TYPE cortex_parquet_queryable_cache_misses_total counter
920920
cortex_parquet_queryable_cache_misses_total{name="test"} 1
921-
`))))
921+
`)))
922922
}
923923

924924
func Test_Cache_TTLEvictionByGet(t *testing.T) {
@@ -940,7 +940,7 @@ func Test_Cache_TTLEvictionByGet(t *testing.T) {
940940
val = cache.Get("key1")
941941
require.Equal(t, "", val)
942942

943-
require.NoError(t, testutil.GatherAndCompare(reg, bytes.NewBufferString(fmt.Sprintf(`
943+
require.NoError(t, testutil.GatherAndCompare(reg, bytes.NewBufferString(`
944944
# HELP cortex_parquet_queryable_cache_evictions_total Total number of parquet cache evictions
945945
# TYPE cortex_parquet_queryable_cache_evictions_total counter
946946
cortex_parquet_queryable_cache_evictions_total{name="test"} 1
@@ -953,7 +953,7 @@ func Test_Cache_TTLEvictionByGet(t *testing.T) {
953953
# HELP cortex_parquet_queryable_cache_misses_total Total number of parquet cache misses
954954
# TYPE cortex_parquet_queryable_cache_misses_total counter
955955
cortex_parquet_queryable_cache_misses_total{name="test"} 1
956-
`))))
956+
`)))
957957
}
958958

959959
func Test_Cache_TTLEvictionByLoop(t *testing.T) {
@@ -978,7 +978,7 @@ func Test_Cache_TTLEvictionByLoop(t *testing.T) {
978978
require.False(t, ok)
979979
}
980980

981-
require.NoError(t, testutil.GatherAndCompare(reg, bytes.NewBufferString(fmt.Sprintf(`
981+
require.NoError(t, testutil.GatherAndCompare(reg, bytes.NewBufferString(`
982982
# HELP cortex_parquet_queryable_cache_evictions_total Total number of parquet cache evictions
983983
# TYPE cortex_parquet_queryable_cache_evictions_total counter
984984
cortex_parquet_queryable_cache_evictions_total{name="test"} 1
@@ -988,5 +988,5 @@ func Test_Cache_TTLEvictionByLoop(t *testing.T) {
988988
# HELP cortex_parquet_queryable_cache_item_count Current number of cached parquet items
989989
# TYPE cortex_parquet_queryable_cache_item_count gauge
990990
cortex_parquet_queryable_cache_item_count{name="test"} 0
991-
`))))
991+
`)))
992992
}

0 commit comments

Comments
 (0)