-
Notifications
You must be signed in to change notification settings - Fork 33
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
[FLINK-33542] Update tests to JUnit5 #32
Conversation
8ebe188
to
de6cda6
Compare
@Tan-JiaLiang if you have some time, can you take a look pls? |
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 giving me a chance. I left some comment.
public static final MiniClusterWithClientResource MINI_CLUSTER = | ||
new MiniClusterWithClientResource( | ||
@RegisterExtension | ||
private static final MiniClusterExtension MINI_CLUSTER_EXTENSION = |
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.
There is moving to HBaseTestingClusterAutoStarter
already, maybe we can remove it.
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 checked the commit that added this (FLINK-24077) and it was introduced to fix a flaky test, so I went with the dummy approach to keep it as close to the state it was before. But since this code lives in a separate repo now and the underlying logic with JUnit5 might do not have that defect anyways I think it can be removed. If it introduces test flakiness again, we will know the probable source.
...onnector-hbase-2.2/src/test/java/org/apache/flink/connector/hbase2/HBaseConnectorITCase.java
Show resolved
Hide resolved
de6cda6
to
d1d88bd
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.
LGTM!
* [FLINK-33542] Update tests to JUnit5 * Remove remaining "public" modifiers from test methods * Remove unnecessary mini cluster extension (cherry picked from commit a36b137)
Update the existing tests to JUnit5.
Except
HBaseTablePlanTest
, which is based onTableTestBase
from the core Flink repo, that is still on JUnit4.