From 8f1d9d29206372500584e8f66d11f6bde8d95801 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Fri, 28 Aug 2020 17:00:43 +0200 Subject: [PATCH] use moq generated mock MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jörn Friedrich Dreyer --- pkg/middleware/account_uuid_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/middleware/account_uuid_test.go b/pkg/middleware/account_uuid_test.go index 7241fa9..3b3a60a 100644 --- a/pkg/middleware/account_uuid_test.go +++ b/pkg/middleware/account_uuid_test.go @@ -73,15 +73,15 @@ func TestAccountUUIDMiddlewareWithDisabledAccount(t *testing.T) { func mockAccountUUIDMiddlewareAccSvc(retErr, accEnabled bool) proto.AccountsService { if retErr { - return &proto.MockAccountsService{ - ListFunc: func(ctx context.Context, in *proto.ListAccountsRequest, opts ...client.CallOption) (out *proto.ListAccountsResponse, err error) { + return &proto.AccountsServiceMock{ + ListAccountsFunc: func(ctx context.Context, in *proto.ListAccountsRequest, opts ...client.CallOption) (out *proto.ListAccountsResponse, err error) { return nil, fmt.Errorf("error returned by mockAccountsService LIST") }, } } - return &proto.MockAccountsService{ - ListFunc: func(ctx context.Context, in *proto.ListAccountsRequest, opts ...client.CallOption) (out *proto.ListAccountsResponse, err error) { + return &proto.AccountsServiceMock{ + ListAccountsFunc: func(ctx context.Context, in *proto.ListAccountsRequest, opts ...client.CallOption) (out *proto.ListAccountsResponse, err error) { return &proto.ListAccountsResponse{ Accounts: []*proto.Account{ {