mirror of
https://github.com/prometheus/statsd_exporter.git
synced 2024-11-29 18:50:59 +00:00
Adapt mapper test to changed signature
Co-authored-by: Simon Westphahl <westphahl@gmail.com> Signed-off-by: Simon Westphahl <simon.westphahl@bmw.de>
This commit is contained in:
parent
b2423c56a5
commit
d7357a2173
1 changed files with 2 additions and 1 deletions
|
@ -453,8 +453,9 @@ mappings:
|
||||||
t.Fatalf("%d. Expected bad config, but loaded ok: %s", i, scenario.config)
|
t.Fatalf("%d. Expected bad config, but loaded ok: %s", i, scenario.config)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var dummyMetricType metricType = ""
|
||||||
for metric, mapping := range scenario.mappings {
|
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 {
|
if present && mapping.name != "" && m.Name != mapping.name {
|
||||||
t.Fatalf("%d.%q: Expected name %v, got %v", i, metric, m.Name, mapping.name)
|
t.Fatalf("%d.%q: Expected name %v, got %v", i, metric, m.Name, mapping.name)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue