diff options
Diffstat (limited to 'service/metrics')
-rw-r--r-- | service/metrics/config_test.go | 2 | ||||
-rw-r--r-- | service/metrics/rpc_test.go | 9 | ||||
-rw-r--r-- | service/metrics/service_test.go | 9 |
3 files changed, 11 insertions, 9 deletions
diff --git a/service/metrics/config_test.go b/service/metrics/config_test.go index 94f97da5..5153ead1 100644 --- a/service/metrics/config_test.go +++ b/service/metrics/config_test.go @@ -11,7 +11,7 @@ import ( type mockCfg struct{ cfg string } -func (cfg *mockCfg) Get(name string) service.Config { return nil } +func (cfg *mockCfg) Get(name string) service.Config { return nil } func (cfg *mockCfg) Unmarshal(out interface{}) error { j := json.ConfigCompatibleWithStandardLibrary return j.Unmarshal([]byte(cfg.cfg), out) diff --git a/service/metrics/rpc_test.go b/service/metrics/rpc_test.go index 2fc4bc32..37af3eec 100644 --- a/service/metrics/rpc_test.go +++ b/service/metrics/rpc_test.go @@ -1,15 +1,16 @@ package metrics import ( + rpc2 "net/rpc" + "strconv" + "testing" + "time" + "github.com/sirupsen/logrus" "github.com/sirupsen/logrus/hooks/test" "github.com/spiral/roadrunner/service" "github.com/spiral/roadrunner/service/rpc" "github.com/stretchr/testify/assert" - rpc2 "net/rpc" - "strconv" - "testing" - "time" ) var port = 5004 diff --git a/service/metrics/service_test.go b/service/metrics/service_test.go index cdb81147..7e11cf85 100644 --- a/service/metrics/service_test.go +++ b/service/metrics/service_test.go @@ -1,6 +1,11 @@ package metrics import ( + "io/ioutil" + "net/http" + "testing" + "time" + json "github.com/json-iterator/go" "github.com/prometheus/client_golang/prometheus" "github.com/sirupsen/logrus" @@ -8,10 +13,6 @@ import ( "github.com/spiral/roadrunner/service" "github.com/spiral/roadrunner/service/rpc" "github.com/stretchr/testify/assert" - "io/ioutil" - "net/http" - "testing" - "time" ) type testCfg struct { |