summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-06-09 11:21:21 +0300
committerValery Piashchynski <[email protected]>2021-06-09 11:21:21 +0300
commitffad3119505aab02f0b7d5ba1cc29e6e91be5d11 (patch)
treec41ab92d6a02b2669f24702cb44dc54b3e241442
parentc54ce35f8e9c48eab96a7c2c37f67e62eaea406b (diff)
- Add mock logger expected string
Signed-off-by: Valery Piashchynski <[email protected]>
-rw-r--r--tests/plugins/metrics/metrics_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/plugins/metrics/metrics_test.go b/tests/plugins/metrics/metrics_test.go
index 84c60592..3d900fcc 100644
--- a/tests/plugins/metrics/metrics_test.go
+++ b/tests/plugins/metrics/metrics_test.go
@@ -136,6 +136,7 @@ func TestMetricsIssue571(t *testing.T) {
mockLogger.EXPECT().Info("metric successfully added", "name", "test", "labels", []string{}, "value", gomock.Any()).MinTimes(1)
mockLogger.EXPECT().Info("adding metric", "name", "test", "value", gomock.Any(), "labels", []string{}).MinTimes(1)
mockLogger.EXPECT().Error("metric with provided name already exist", "name", "test", "type", gomock.Any(), "namespace", gomock.Any()).MinTimes(3)
+ mockLogger.EXPECT().Info("scan command", gomock.Any()).AnyTimes()
err = cont.RegisterAll(
cfg,