update for latest micro

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-01-29 15:08:17 +03:00
parent 5e4ca41774
commit 7e3e1152a5
7 changed files with 64 additions and 360 deletions

View File

@@ -1,18 +1,18 @@
// +build ignore
package registry
package register
import (
"os"
"testing"
"github.com/unistack-org/micro/v3/registry/memory"
"github.com/unistack-org/micro/v3/register/memory"
"github.com/unistack-org/micro/v3/router"
)
func routerTestSetup() router.Router {
r := memory.NewRegistry()
return NewRouter(router.Registry(r))
r := memory.NewRegister()
return NewRouter(router.Register(r))
}
func TestRouterClose(t *testing.T) {