From d7357a2173cbe7999f2aa0e48add19896f57c58f Mon Sep 17 00:00:00 2001 From: Simon Westphahl Date: Fri, 15 Jun 2018 14:25:04 +0200 Subject: [PATCH] Adapt mapper test to changed signature Co-authored-by: Simon Westphahl Signed-off-by: Simon Westphahl --- mapper_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mapper_test.go b/mapper_test.go index 625d55e..83c08f2 100644 --- a/mapper_test.go +++ b/mapper_test.go @@ -453,8 +453,9 @@ mappings: t.Fatalf("%d. Expected bad config, but loaded ok: %s", i, scenario.config) } + var dummyMetricType metricType = "" for metric, mapping := range scenario.mappings { - m, labels, present := mapper.getMapping(metric) + m, labels, present := mapper.getMapping(metric, dummyMetricType) if present && mapping.name != "" && m.Name != mapping.name { t.Fatalf("%d.%q: Expected name %v, got %v", i, metric, m.Name, mapping.name) }