-
Notifications
You must be signed in to change notification settings - Fork 38.8k
RestTestClient.mutate() should not have side effects #35698
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: main
Are you sure you want to change the base?
RestTestClient.mutate() should not have side effects #35698
Conversation
7916536 to
3df1c62
Compare
3df1c62 to
5b30f1d
Compare
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.
Thanks !
|
Thanks for the pull request .This is done in |
I did not notice that that builder was cloned in the |
|
Yes, it should be removed from |
Before this change, DefaultRestTestClient.mutate() was reusing the underlying builder all calls. Building a new builder for each call clones the RestTestClientBuilder, protecting from side effects. Signed-off-by: Thomas Recloux <trecloux@purse.eu>
Signed-off-by: Thomas Recloux <trecloux@purse.eu>
5b30f1d to
c72052c
Compare
I added a commit with clone removed from |
Before this change,
DefaultRestTestClient.mutate()was reusing the underlying builder all calls.Building a new builder for each call clones the
RestTestClientBuilder, protecting from side effects.