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(

View File

@@ -15,7 +15,6 @@ import (
"github.com/unistack-org/micro/v3/broker"
"github.com/unistack-org/micro/v3/client"
"github.com/unistack-org/micro/v3/errors"
"github.com/unistack-org/micro/v3/logger"
"github.com/unistack-org/micro/v3/register"
"github.com/unistack-org/micro/v3/router"
"github.com/unistack-org/micro/v3/server"
@@ -45,7 +44,6 @@ func (t *testHandler) Method(ctx context.Context, req *TestRequest, rsp *TestRes
}
func TestClient(t *testing.T) {
logger.DefaultLogger = logger.NewLogger(logger.WithLevel(logger.ErrorLevel))
// setup
assert := assert.New(t)
for name, tt := range map[string]struct {
@@ -91,7 +89,7 @@ func TestClient(t *testing.T) {
server.Codec("application/json", jsoncodec.NewCodec()),
server.Name(serverName),
server.Version(serverVersion),
server.Id(serverID),
server.ID(serverID),
server.Register(reg),
server.Broker(brk),
server.WrapSubscriber(otwrapper.NewServerSubscriberWrapper(otwrapper.WithTracer(tracer))),