From 94666e20b707e92495bf265ae16f20b9e8656860 Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Mon, 3 Feb 2014 12:27:01 +0100 Subject: [PATCH] Minor test error reporting cleanup. Change-Id: Ie11c16b4e60de7c179c6d2a86e063f4432e2000f --- storage/metric/tiered_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/storage/metric/tiered_test.go b/storage/metric/tiered_test.go index 2c61dd2d2..0d8ac5b5f 100644 --- a/storage/metric/tiered_test.go +++ b/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])