diff options
author | Valery Piashchynski <[email protected]> | 2021-06-09 11:21:21 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-06-09 11:21:21 +0300 |
commit | ffad3119505aab02f0b7d5ba1cc29e6e91be5d11 (patch) | |
tree | c41ab92d6a02b2669f24702cb44dc54b3e241442 | |
parent | c54ce35f8e9c48eab96a7c2c37f67e62eaea406b (diff) |
- Add mock logger expected string
Signed-off-by: Valery Piashchynski <[email protected]>
-rw-r--r-- | tests/plugins/metrics/metrics_test.go | 1 |
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, |