diff options
author | 2016-10-30 15:08:40 +0000 | |
---|---|---|
committer | 2016-10-30 15:08:40 +0000 | |
commit | 81d5baee284063d9d2501fab15138ade5da5180f (patch) | |
tree | 1b49f83d548a4082e66874efc5ebccfa3bb383e7 | |
parent | 1b923adde68f8101faaf05f109a9460c1d5f0660 (diff) | |
download | coredns-81d5baee284063d9d2501fab15138ade5da5180f.tar.gz coredns-81d5baee284063d9d2501fab15138ade5da5180f.tar.zst coredns-81d5baee284063d9d2501fab15138ade5da5180f.zip |
middleware/cache: fix metrics test
Fix the metrics test, top-level test directory still referenced the
old metrics name.
-rw-r--r-- | test/metrics_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/metrics_test.go b/test/metrics_test.go index bdf3fa382..ee905e155 100644 --- a/test/metrics_test.go +++ b/test/metrics_test.go @@ -73,7 +73,7 @@ func TestMetricsRefused(t *testing.T) { } func TestMetricsCache(t *testing.T) { - metricName := "coredns_cache_size_guage" + metricName := "coredns_cache_size" corefile := `example.net:0 { proxy . 8.8.8.8:53 @@ -97,7 +97,7 @@ func TestMetricsCache(t *testing.T) { } data := mtest.Scrape(t, "http://"+metrics.ListenAddr+"/metrics") - // Get the value for the metrics where the one of the labels values matches "success" + // Get the value for the metrics where the one of the labels values matches "success". got, _ := mtest.MetricValueLabel(metricName, cache.Success, data) if got != "1" { |