chore(tests): migrate to Testify for mocking and assertions

This commit is contained in:
2026-01-26 11:53:00 +07:00
parent 65df01fee5
commit ee1dc3c3cd
10 changed files with 530 additions and 547 deletions
+2 -2
View File
@@ -198,8 +198,8 @@ func (m *MockGRPCClient) ClientConn() *grpc.ClientConn {
}
func (m *MockGRPCClient) AuthorizeConn(ctx context.Context, token string) (authorized bool, user string, err error) {
m.Called()
return
args := m.Called(ctx, token)
return args.Bool(0), args.String(1), args.Error(2)
}
func (m *MockGRPCClient) CheckServerHealth(ctx context.Context) error {