diff --git a/rand/rand_test.go b/rand/rand_test.go index 4383e4fb2..276a55fb5 100644 --- a/rand/rand_test.go +++ b/rand/rand_test.go @@ -78,7 +78,7 @@ func checkSampleDistribution(t *testing.T, samples []float64, expected *statsRes actual := getStatsResults(samples) err := actual.checkSimilarDistribution(expected) if err != nil { - t.Errorf(err.Error()) + t.Error(err) } }