mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-13 06:47:28 -08:00
Minor test error reporting cleanup.
Change-Id: Ie11c16b4e60de7c179c6d2a86e063f4432e2000f
This commit is contained in:
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…
Reference in a new issue