Skip to content

Commit 27df775

Browse files
authored
exec-probes: adjust greater than or equal to logic (#3015)
1 parent 7afd879 commit 27df775

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/performance/suite.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ func testLimitedUseOfExecProbes(check *checksdb.Check, env *provider.TestEnviron
138138
check.LogInfo("Testing Container %q", cut)
139139
if cut.LivenessProbe != nil && cut.LivenessProbe.Exec != nil {
140140
counter++
141-
if cut.LivenessProbe.PeriodSeconds > minExecProbePeriodSeconds {
141+
if cut.LivenessProbe.PeriodSeconds >= minExecProbePeriodSeconds {
142142
check.LogInfo("Container %q has a LivenessProbe with PeriodSeconds greater than %d (%d seconds)",
143143
cut, minExecProbePeriodSeconds, cut.LivenessProbe.PeriodSeconds)
144144

@@ -157,7 +157,7 @@ func testLimitedUseOfExecProbes(check *checksdb.Check, env *provider.TestEnviron
157157
}
158158
if cut.StartupProbe != nil && cut.StartupProbe.Exec != nil {
159159
counter++
160-
if cut.StartupProbe.PeriodSeconds > minExecProbePeriodSeconds {
160+
if cut.StartupProbe.PeriodSeconds >= minExecProbePeriodSeconds {
161161
check.LogInfo("Container %q has a StartupProbe with PeriodSeconds greater than %d (%d seconds)",
162162
cut, minExecProbePeriodSeconds, cut.LivenessProbe.PeriodSeconds)
163163

@@ -176,7 +176,7 @@ func testLimitedUseOfExecProbes(check *checksdb.Check, env *provider.TestEnviron
176176
}
177177
if cut.ReadinessProbe != nil && cut.ReadinessProbe.Exec != nil {
178178
counter++
179-
if cut.ReadinessProbe.PeriodSeconds > minExecProbePeriodSeconds {
179+
if cut.ReadinessProbe.PeriodSeconds >= minExecProbePeriodSeconds {
180180
check.LogInfo("Container %q has a ReadinessProbe with PeriodSeconds greater than %d (%d seconds)",
181181
cut, minExecProbePeriodSeconds, cut.LivenessProbe.PeriodSeconds)
182182

0 commit comments

Comments
 (0)