-
Notifications
You must be signed in to change notification settings - Fork 853
Regenerate client_mock in service/worker/parentclosepolicy using mockgen #7226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Regenerate client_mock in service/worker/parentclosepolicy using mockgen #7226
Conversation
Head branch was pushed to by a user without write access
ef7d6bc
to
105424b
Compare
@@ -319,7 +318,7 @@ func (s *transferActiveTaskExecutorSuite) TestProcessActivityTask_Ratelimits() { | |||
s.NoError(err) | |||
s.mockExecutionMgr.On("GetWorkflowExecution", mock.Anything, mock.Anything).Return(&persistence.GetWorkflowExecutionResponse{State: persistenceMutableState}, nil) | |||
|
|||
// expected calls to matching if task processing is allowed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The calls are to matching (the service) - so the comment was correct
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jakobht I updated two comments a little bit. Please take a look!
@@ -491,7 +490,7 @@ func (s *transferActiveTaskExecutorSuite) TestProcessDecisionTask_Ratelimits() { | |||
s.NoError(err) | |||
s.mockExecutionMgr.On("GetWorkflowExecution", mock.Anything, mock.Anything).Return(&persistence.GetWorkflowExecutionResponse{State: persistenceMutableState}, nil) | |||
|
|||
// expected calls to matching if task processing is allowed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The calls are to matching (the service) - so the comment was correct
errs := []error{nil, &types.CancellationAlreadyRequestedError{}, &types.EntityNotExistsError{}} | ||
return errs[rand.Intn(len(errs))] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a bad change - lets not do that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jakobht This change only rename the local variable errors because it collides with the imported package errors.
errs := []error{nil, &types.EntityNotExistsError{}} | ||
return errs[rand.Intn(len(errs))] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a bad change - lets not do that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jakobht This change only rename the local variable errors
because it collides with the imported package errors
.
e8c91b8
to
740c88d
Compare
740c88d
to
8c86a5d
Compare
What changed?
Why?
How did you test it?
local tests
Potential risks
N/A
Release notes
N/A
Documentation Changes
N/A