Skip to content

Commit a598710

Browse files
authored
Merge pull request #2044 from CortexFoundation/dev
metrics: fix out of range error message
2 parents 7939e31 + ef68e57 commit a598710

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

metrics/sample_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func TestExpDecaySample(t *testing.T) {
114114
}
115115
for _, v := range values {
116116
if v > int64(tc.updates) || v < 0 {
117-
t.Errorf("out of range [0, %d): %v", tc.updates, v)
117+
t.Errorf("out of range [0, %d]: %v", tc.updates, v)
118118
}
119119
}
120120
}
@@ -195,7 +195,7 @@ func TestUniformSample(t *testing.T) {
195195
}
196196
for _, v := range values {
197197
if v > 1000 || v < 0 {
198-
t.Errorf("out of range [0, 100): %v\n", v)
198+
t.Errorf("out of range [0, 1000]: %v\n", v)
199199
}
200200
}
201201
}

0 commit comments

Comments
 (0)