@@ -10,7 +10,6 @@ import (
|
||||
|
||||
grpc "github.com/unistack-org/micro-client-grpc/v3"
|
||||
protocodec "github.com/unistack-org/micro-codec-proto/v3"
|
||||
rmemory "github.com/unistack-org/micro-register-memory/v3"
|
||||
regRouter "github.com/unistack-org/micro-router-register/v3"
|
||||
pb "github.com/unistack-org/micro-tests/client/grpc/proto"
|
||||
"github.com/unistack-org/micro/v3/client"
|
||||
@@ -72,7 +71,7 @@ func TestGRPCClient(t *testing.T) {
|
||||
defer s.Stop()
|
||||
|
||||
// create mock register
|
||||
r := rmemory.NewRegister()
|
||||
r := register.NewRegister()
|
||||
|
||||
// register service
|
||||
if err := r.Register(ctx, ®ister.Service{
|
||||
|
@@ -13,7 +13,6 @@ import (
|
||||
|
||||
mhttp "github.com/unistack-org/micro-client-http/v3"
|
||||
jsoncodec "github.com/unistack-org/micro-codec-json/v3"
|
||||
rmemory "github.com/unistack-org/micro-register-memory/v3"
|
||||
rrouter "github.com/unistack-org/micro-router-register/v3"
|
||||
pb "github.com/unistack-org/micro-tests/client/http/proto"
|
||||
"github.com/unistack-org/micro/v3/client"
|
||||
@@ -77,7 +76,7 @@ func TestNative(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestHTTPClient(t *testing.T) {
|
||||
reg := rmemory.NewRegister()
|
||||
reg := register.NewRegister()
|
||||
rtr := rrouter.NewRouter(router.Register(reg))
|
||||
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
@@ -164,7 +163,7 @@ func TestHTTPClient(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestHTTPClientStream(t *testing.T) {
|
||||
reg := rmemory.NewRegister()
|
||||
reg := register.NewRegister()
|
||||
rtr := rrouter.NewRouter(router.Register(reg))
|
||||
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
|
Reference in New Issue
Block a user