summaryrefslogtreecommitdiff
path: root/plugins/metrics/config_test.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-11-19 17:28:30 +0300
committerValery Piashchynski <[email protected]>2020-11-19 17:28:30 +0300
commit71c81a91f9f967e41310077bd26b1dedb0b49556 (patch)
treecce9cb740bae0b9acbfc15d76823174f571a0a6c /plugins/metrics/config_test.go
parente9595a5c133ff02b765c0b59913593e7f91bc4e7 (diff)
huge linters fix update
Diffstat (limited to 'plugins/metrics/config_test.go')
-rw-r--r--plugins/metrics/config_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/metrics/config_test.go b/plugins/metrics/config_test.go
index 24c8406c..665ec9cd 100644
--- a/plugins/metrics/config_test.go
+++ b/plugins/metrics/config_test.go
@@ -4,11 +4,13 @@ import (
"bytes"
"testing"
- json "github.com/json-iterator/go"
+ j "github.com/json-iterator/go"
"github.com/prometheus/client_golang/prometheus"
"github.com/stretchr/testify/assert"
)
+var json = j.ConfigCompatibleWithStandardLibrary
+
func Test_Config_Hydrate_Error1(t *testing.T) {
cfg := `{"request": {"From": "Something"}}`
c := &Config{}