Minor test error reporting cleanup.

Change-Id: Ie11c16b4e60de7c179c6d2a86e063f4432e2000f
changes/12/112/1
Julius Volz 11 years ago
parent fd2158e746
commit 94666e20b7

@ -746,7 +746,7 @@ func TestGetMetricForFingerprintCachesCopyOfMetric(t *testing.T) {
}
if err := ts.AppendSamples(samples); err != nil {
t.Fatalf(err.Error())
t.Fatal(err)
}
ts.Flush()
@ -755,14 +755,14 @@ func TestGetMetricForFingerprintCachesCopyOfMetric(t *testing.T) {
fp.LoadFromMetric(m)
m, err := ts.GetMetricForFingerprint(fp)
if err != nil {
t.Fatalf(err.Error())
t.Fatal(err)
}
m[clientmodel.MetricNameLabel] = "changedmetric"
m, err = ts.GetMetricForFingerprint(fp)
if err != nil {
t.Fatalf(err.Error())
t.Fatal(err)
}
if m[clientmodel.MetricNameLabel] != "testmetric" {
t.Fatal("Metric name label value has changed: ", m[clientmodel.MetricNameLabel])

Loading…
Cancel
Save