Browse Source

Minor test error reporting cleanup.

Change-Id: Ie11c16b4e60de7c179c6d2a86e063f4432e2000f
changes/12/112/1
Julius Volz 11 years ago
parent
commit
94666e20b7
  1. 6
      storage/metric/tiered_test.go

6
storage/metric/tiered_test.go

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