-
Notifications
You must be signed in to change notification settings - Fork 13k
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
[hotfix][table][test] remove duplicated code #23786
Conversation
collectResult = | ||
TestChangelogResult collectResult = |
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 guess this also should be replaced as
TestChangelogResult collectResult = createTestChangelogResult();
Thanks for driving this Lines 374 to 378 in 0c724f5
and Lines 225 to 229 in 0c724f5
|
good catch! Thanks! |
@@ -240,6 +232,16 @@ void testBatchResult() { | |||
assertThat(collectResult.closed).isFalse(); | |||
} | |||
|
|||
@NotNull | |||
private TestChangelogResult createTestChangelogResult() { |
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.
nit: it's better to put private/utils methods below all the tests
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 for addressing comments 👍
I left a minor one, all the others lgtm
c2f7470
to
5d950ed
Compare
Thanks @snuyanzin for the review! |
What is the purpose of the change
remove duplicated code according the clean code concept.
Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: (yes / no)Documentation