summaryrefslogtreecommitdiff
path: root/plugins/metrics/tests
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-11-13 18:06:24 +0300
committerValery Piashchynski <[email protected]>2020-11-13 18:06:24 +0300
commite83f7d824e5f491fb50b4a9024ef7862aee9b6ca (patch)
treebc594c95c88a7062720841a7ebc0aef95ea3969f /plugins/metrics/tests
parent326b1f1beadc502dd7d78c7ffbceeaf238406ebb (diff)
golangci linters warnings fix
Diffstat (limited to 'plugins/metrics/tests')
-rw-r--r--plugins/metrics/tests/plugin1.go2
-rw-r--r--plugins/metrics/tests/plugin2.go26
2 files changed, 14 insertions, 14 deletions
diff --git a/plugins/metrics/tests/plugin1.go b/plugins/metrics/tests/plugin1.go
index 345a3ec6..8f1ece52 100644
--- a/plugins/metrics/tests/plugin1.go
+++ b/plugins/metrics/tests/plugin1.go
@@ -38,7 +38,7 @@ func (p1 *Plugin1) MetricsCollector() prometheus.Collector {
return collector
}
-////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////
type Plugin3 struct {
config config.Configurer
}
diff --git a/plugins/metrics/tests/plugin2.go b/plugins/metrics/tests/plugin2.go
index 4369971b..5d36b729 100644
--- a/plugins/metrics/tests/plugin2.go
+++ b/plugins/metrics/tests/plugin2.go
@@ -14,26 +14,26 @@ func (p2 *Plugin2) Serve() chan error {
errCh := make(chan error, 1)
go func() {
- //time.Sleep(time.Second * 3)
+ // time.Sleep(time.Second * 3)
//
- //conn, err := net.Dial("tcp", "127.0.0.1:6001")
- //if err != nil {
+ // conn, err := net.Dial("tcp", "127.0.0.1:6001")
+ // if err != nil {
// errCh <- errors.E(errors.Serve, err)
// return
- //}
- //client := rpc.NewClientWithCodec(goridge.NewClientCodec(conn))
- //var ret string
- //err = client.Call("metrics_test.plugin1.Hello", "Valery", &ret)
- //if err != nil {
+ // }
+ // client := rpc.NewClientWithCodec(goridge.NewClientCodec(conn))
+ // var ret string
+ // err = client.Call("metrics_test.plugin1.Hello", "Valery", &ret)
+ // if err != nil {
// errCh <- err
// return
- //}
- //if ret != "Hello, username: Valery" {
+ // }
+ // if ret != "Hello, username: Valery" {
// errCh <- errors.E("wrong response")
// return
- //}
- //// to stop exec
- //errCh <- errors.E(errors.Disabled)
+ // }
+ // // to stop exec
+ // errCh <- errors.E(errors.Disabled)
return
}()