Skip to content

Commit b520590

Browse files
committed
Fix description
Signed-off-by: AkramBitar <akram@il.ibm.com>
1 parent 00605db commit b520590

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

platform/common/utils/metrics_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@ func TestFix4_RoundingProducesCleanValues(t *testing.T) {
119119
// Format as Prometheus would (%g format)
120120
prometheusStr := fmt.Sprintf("%g", v)
121121

122-
// Check for ugly patterns
122+
// Check for floating point issue patterns
123123
if len(prometheusStr) > 12 && v > 0 && v < 10 {
124-
t.Errorf("Bucket %d has potentially ugly Prometheus output: le=\"%s\"", i, prometheusStr)
124+
t.Errorf("Bucket %d has potentially floating point issue in Prometheus output: le=\"%s\"", i, prometheusStr)
125125
}
126126

127127
t.Logf("Bucket %d: le=\"%s\" ✓", i, prometheusStr)
@@ -224,7 +224,7 @@ func TestAllFixes_Comprehensive(t *testing.T) {
224224
for i, v := range buckets {
225225
prometheusStr := fmt.Sprintf("%g", v)
226226
if len(prometheusStr) > 12 && v > 0 && v < 10 {
227-
t.Errorf("Bucket %d has ugly output: %s", i, prometheusStr)
227+
t.Errorf("Bucket %d has potentially floating point issue in the output: %s", i, prometheusStr)
228228
}
229229
}
230230

0 commit comments

Comments
 (0)