Skip to content

Commit 39a2cdf

Browse files
committed
fail threshold to match 95% metrics check
1 parent 5662230 commit 39a2cdf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/slo/internal/metrics/metrics.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,14 +329,14 @@ func (m *Metrics) TimeoutsTotal() float64 {
329329
}
330330

331331
func (m *Metrics) FailOnError() {
332-
if m.ErrorsTotal()*100 > m.OperationsTotal() {
332+
if m.ErrorsTotal()*20 > m.OperationsTotal() { // 95%
333333
log.Panicf(
334334
"unretriable (or not successfully retried) errors: %.0f errors out of %.0f operations",
335335
m.ErrorsTotal(),
336336
m.OperationsTotal(),
337337
)
338338
}
339-
if m.TimeoutsTotal()*100 > m.OperationsTotal() {
339+
if m.TimeoutsTotal()*20 > m.OperationsTotal() {
340340
log.Panicf(
341341
"user timeouts: %.0f timeouts out of %.0f operations",
342342
m.TimeoutsTotal(),

0 commit comments

Comments
 (0)