Skip to content

Commit f5d33a7

Browse files
committed
lint
1 parent c6bb3b5 commit f5d33a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/e2e/watchcache/watchcache_enabled_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,8 @@ func collectCacheHitsFor(ctx context.Context, t *testing.T, rootCfg *rest.Config
238238
txt := scanner.Text()
239239
if strings.Contains(txt, "apiserver_cache_list_total") {
240240
totalCacheHits++
241-
if strings.Contains(txt, fmt.Sprintf(`group="%s"`, group)) &&
242-
strings.Contains(txt, fmt.Sprintf(`resource="%s"`, resource)) {
241+
if strings.Contains(txt, fmt.Sprintf(`group=%q`, group)) &&
242+
strings.Contains(txt, fmt.Sprintf(`resource=%q`, resource)) {
243243
re := regexp.MustCompile(`\b\d+\b`)
244244
prefixCacheHitInstance, err := strconv.Atoi(string(re.Find([]byte(txt))))
245245
if err != nil {

0 commit comments

Comments
 (0)