fix and regen

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2023-02-22 00:12:01 +03:00
parent f72a39965a
commit 09f5a71e0b
32 changed files with 296 additions and 371 deletions

View File

@@ -17,7 +17,6 @@ import (
rrouter "go.unistack.org/micro-router-register/v3"
srv "go.unistack.org/micro-server-grpc/v3"
ot "go.unistack.org/micro-tracer-opentracing/v3"
"go.unistack.org/micro/v3/api"
"go.unistack.org/micro/v3/broker"
"go.unistack.org/micro/v3/client"
"go.unistack.org/micro/v3/errors"
@@ -156,11 +155,12 @@ func TestClient(t *testing.T) {
}
nopts := []server.HandlerOption{
api.WithEndpoint(&api.Endpoint{
Name: "Test.Method",
Method: []string{"POST"},
Handler: "rpc",
}),
server.EndpointMetadata("Test", map[string]string{
"Name": "Test.Method",
"Method": "POST",
"Handler": "rpc",
},
),
}
if err := s.Handle(s.NewHandler(&Test{new(testHandler)}, nopts...)); err != nil {
@@ -206,6 +206,5 @@ func TestClient(t *testing.T) {
}
*/
})
}
}