forked from mirrors/statsd_exporter
getMapping now returns 3 values
This commit is contained in:
parent
1488f0f902
commit
641dc37b5d
1 changed files with 2 additions and 2 deletions
|
@ -148,7 +148,7 @@ func TestMetricMapper(t *testing.T) {
|
|||
test.bar
|
||||
name="name_bar"
|
||||
label="foo"
|
||||
|
||||
|
||||
test.foo
|
||||
name="name_foo"
|
||||
label="bar"`,
|
||||
|
@ -167,7 +167,7 @@ func TestMetricMapper(t *testing.T) {
|
|||
}
|
||||
|
||||
for metric, mapping := range scenario.mappings {
|
||||
labels, present := mapper.getMapping(metric)
|
||||
_, labels, present := mapper.getMapping(metric)
|
||||
if len(labels) == 0 && present {
|
||||
t.Fatalf("%d.%q: Expected metric to not be present", i, metric)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue