fix accounts test
This commit is contained in:
committed by
Jörn Friedrich Dreyer
parent
d2befd9257
commit
cb27090cea
@@ -12,10 +12,10 @@ import (
|
|||||||
|
|
||||||
mgrpcc "github.com/asim/go-micro/plugins/client/grpc/v4"
|
mgrpcc "github.com/asim/go-micro/plugins/client/grpc/v4"
|
||||||
empty "github.com/golang/protobuf/ptypes/empty"
|
empty "github.com/golang/protobuf/ptypes/empty"
|
||||||
|
"github.com/owncloud/ocis/accounts/pkg/command"
|
||||||
"github.com/owncloud/ocis/accounts/pkg/config"
|
"github.com/owncloud/ocis/accounts/pkg/config"
|
||||||
"github.com/owncloud/ocis/accounts/pkg/proto/v0"
|
"github.com/owncloud/ocis/accounts/pkg/proto/v0"
|
||||||
svc "github.com/owncloud/ocis/accounts/pkg/service/v0"
|
svc "github.com/owncloud/ocis/accounts/pkg/service/v0"
|
||||||
oclog "github.com/owncloud/ocis/ocis-pkg/log"
|
|
||||||
"github.com/owncloud/ocis/ocis-pkg/service/grpc"
|
"github.com/owncloud/ocis/ocis-pkg/service/grpc"
|
||||||
settings "github.com/owncloud/ocis/settings/pkg/proto/v0"
|
settings "github.com/owncloud/ocis/settings/pkg/proto/v0"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
@@ -85,7 +85,7 @@ func init() {
|
|||||||
var hdlr *svc.Service
|
var hdlr *svc.Service
|
||||||
var err error
|
var err error
|
||||||
|
|
||||||
if hdlr, err = svc.New(svc.Logger(oclog.LoggerFromConfig("accounts", *cfg.Log)), svc.Config(cfg), svc.RoleService(buildRoleServiceMock())); err != nil {
|
if hdlr, err = svc.New(svc.Logger(command.LoggerFromConfig("accounts", cfg.Log)), svc.Config(cfg), svc.RoleService(buildRoleServiceMock())); err != nil {
|
||||||
log.Fatalf("Could not create new service")
|
log.Fatalf("Could not create new service")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user