summaryrefslogtreecommitdiff
path: root/service/metrics/service_test.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-06-27 13:11:41 +0300
committerWolfy-J <[email protected]>2019-06-27 13:11:41 +0300
commitc4a260cacc43bd8c5b87cce890ae582124ef3509 (patch)
treef9e05b0287d03d981ace0ff8b46ac20350419c0a /service/metrics/service_test.go
parentb386ea186c7a5dc132b2e542b162c8cf75058636 (diff)
rpc test
Diffstat (limited to 'service/metrics/service_test.go')
-rw-r--r--service/metrics/service_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/service/metrics/service_test.go b/service/metrics/service_test.go
index 513b3042..892c9e30 100644
--- a/service/metrics/service_test.go
+++ b/service/metrics/service_test.go
@@ -6,6 +6,7 @@ import (
"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"
"io/ioutil"
"net/http"
@@ -14,6 +15,7 @@ import (
)
type testCfg struct {
+ rpcCfg string
metricsCfg string
target string
}
@@ -23,6 +25,10 @@ func (cfg *testCfg) Get(name string) service.Config {
return &testCfg{target: cfg.metricsCfg}
}
+ if name == rpc.ID {
+ return &testCfg{target: cfg.rpcCfg}
+ }
+
return nil
}