Merge pull request #77479 from danielqsj/id
fix increment-decrement lint error
This commit is contained in:
@@ -177,7 +177,7 @@ func runServiceLatencies(f *framework.Framework, inParallel, total int, acceptab
|
||||
select {
|
||||
case e := <-errs:
|
||||
e2elog.Logf("Got error: %v", e)
|
||||
errCount += 1
|
||||
errCount++
|
||||
case d := <-durations:
|
||||
output = append(output, d)
|
||||
}
|
||||
|
@@ -200,7 +200,7 @@ func containerGCTest(f *framework.Framework, test testRun) {
|
||||
containerCount := 0
|
||||
for _, containerName := range containerNames {
|
||||
if containerName == pod.getContainerName(i) {
|
||||
containerCount += 1
|
||||
containerCount++
|
||||
}
|
||||
}
|
||||
if containerCount > maxPerPodContainer+1 {
|
||||
@@ -228,7 +228,7 @@ func containerGCTest(f *framework.Framework, test testRun) {
|
||||
containerCount := 0
|
||||
for _, containerName := range containerNames {
|
||||
if containerName == pod.getContainerName(i) {
|
||||
containerCount += 1
|
||||
containerCount++
|
||||
}
|
||||
}
|
||||
if pod.restartCount > 0 && containerCount < maxPerPodContainer+1 {
|
||||
|
Reference in New Issue
Block a user