Remove float diff tolerance altogether.

Change-Id: I9ea9683a4665d5800fca75560bb4b8a8b4406d55
This commit is contained in:
Bjoern Rabenstein 2014-08-19 18:30:55 +02:00
parent d742edfe0d
commit 1ca7f24137

View file

@ -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
}