From 158ebc0692aafc8a8fdb88341204c36c74ec0213 Mon Sep 17 00:00:00 2001 From: Eric Feliksik Date: Mon, 31 Jul 2017 16:28:06 +0200 Subject: [PATCH] the random teststat.FillCounter() may not add any samples. Then the labels are also not registered. --- metrics/cloudwatch/cloudwatch_test.go | 1 - 1 file changed, 1 deletion(-) diff --git a/metrics/cloudwatch/cloudwatch_test.go b/metrics/cloudwatch/cloudwatch_test.go index 5b8cea633..8ed93ace3 100644 --- a/metrics/cloudwatch/cloudwatch_test.go +++ b/metrics/cloudwatch/cloudwatch_test.go @@ -45,7 +45,6 @@ func (mcw *mockCloudWatch) testDimensions(name string, labelValues ...string) er if !hasValue { return nil // nothing to check; 0 samples were received } - dimensions, ok := mcw.dimensionsReceived[name] mcw.mtx.RUnlock()