Skip to content

Commit dac96e5

Browse files
authored
Fix NH comparer when Count is NaN (#6700)
Signed-off-by: SungJin1212 <[email protected]>
1 parent 3d24367 commit dac96e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: integration/query_fuzz_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,7 @@ var comparer = cmp.Comparer(func(x, y model.Value) bool {
967967
}
968968

969969
compareHistograms := func(l, r *model.SampleHistogram) bool {
970-
return l == r || (l.Count == r.Count && compareFloats(float64(l.Sum), float64(r.Sum)) && compareHistogramBuckets(l.Buckets, r.Buckets))
970+
return l == r || (compareFloats(float64(l.Count), float64(r.Count)) && compareFloats(float64(l.Sum), float64(r.Sum)) && compareHistogramBuckets(l.Buckets, r.Buckets))
971971
}
972972

973973
// count_values returns a metrics with one label {"value": "1.012321"}

0 commit comments

Comments
 (0)