Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Swarbrick <daniel.swarbrick@gmail.com>
Signed-off-by: Seth Bunce <seth.bunce@getcruise.com>
  • Loading branch information
sbunce and dswarbrick committed Sep 14, 2022
1 parent 4691831 commit 0d8d662
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prometheus/histogram_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ func TestBuckets(t *testing.T) {
35.9381, 59.9484, 100.0000,
}
const tolerance = 0.0001
if !equalFloat64s(got, want, 0.0001) {
if !equalFloat64s(got, want, tolerance) {
t.Errorf("exponential buckets range: got %v, want %v (tolerance %f)", got, want, tolerance)
}
}
Expand Down

0 comments on commit 0d8d662

Please sign in to comment.