mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-10 07:34:04 -08:00
Remove float diff tolerance altogether.
Change-Id: I9ea9683a4665d5800fca75560bb4b8a8b4406d55
This commit is contained in:
parent
d742edfe0d
commit
1ca7f24137
|
@ -2,7 +2,6 @@ package storage_ng
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"math"
|
||||
"math/rand"
|
||||
"testing"
|
||||
"testing/quick"
|
||||
|
@ -434,7 +433,7 @@ func verifyStorage(t *testing.T, s Storage, samples clientmodel.Samples, r *rand
|
|||
}
|
||||
want := float64(sample.Value)
|
||||
got := float64(found[0].Value)
|
||||
if want != got && (want == 0. || math.Abs(want-got)/want > 0.000001) {
|
||||
if want != got {
|
||||
t.Errorf("Value mismatch, want %f, got %f.", want, got)
|
||||
result = false
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue