fix(deps): update all deps (#65)

* fix(deps): update all deps

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
renovate[bot]
2021-04-29 22:51:46 +03:00
committed by GitHub
parent 64df099b70
commit d00792b4a8
15 changed files with 50 additions and 86 deletions

View File

@@ -2,7 +2,6 @@ package prometheus_test
import (
"context"
"fmt"
"testing"
"github.com/prometheus/client_golang/prometheus"
@@ -15,6 +14,7 @@ import (
srv "github.com/unistack-org/micro-server-grpc/v3"
"github.com/unistack-org/micro/v3/broker"
"github.com/unistack-org/micro/v3/client"
errors "github.com/unistack-org/micro/v3/errors"
"github.com/unistack-org/micro/v3/register"
"github.com/unistack-org/micro/v3/router"
"github.com/unistack-org/micro/v3/server"
@@ -33,13 +33,13 @@ type testHandler struct{}
func (t *testHandler) Method(ctx context.Context, req *TestRequest, rsp *TestResponse) error {
if req.IsError {
return fmt.Errorf("test error")
return &errors.Error{Id: "prometheus test error"}
}
return nil
}
func TestPrometheusMetrics(t *testing.T) {
client.DefaultRetries = 0
t.Skip("not implemented now")
// setup
reg := register.NewRegister()
brk := broker.NewBroker(broker.Register(reg))
@@ -59,7 +59,7 @@ func TestPrometheusMetrics(t *testing.T) {
server.Codec("application/json", jsoncodec.NewCodec()),
server.Name(name),
server.Version(version),
server.Id(id),
server.ID(id),
server.Register(reg),
server.Broker(brk),
server.WrapHandler(