-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Improve HPL/SQL tests #5381
base: master
Are you sure you want to change the base?
Improve HPL/SQL tests #5381
Conversation
Two tests in `hplsql` module make assertions on the output to `System.out` and `System.err`. This makes the tests fragile to any other output that might appear there (see apache/logging-log4j2#2791 for example). This PR introduces a custom `Console` implementation to capture the output of these tests and make them independent from whatever is printed to the standard output and error descriptors.
Quality Gate passedIssues Measures |
hplsql/src/test/java/org/apache/hive/hplsql/TestHplsqlLocal.java
Outdated
Show resolved
Hide resolved
hplsql/src/test/java/org/apache/hive/hplsql/TestHplsqlOffline.java
Outdated
Show resolved
Hide resolved
Quality Gate passedIssues Measures |
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 +1
@ppkarwasz Thanks for your fix. |
What changes were proposed in this pull request?
This PR introduces a custom
Console
implementation to capture the output of twohplsql
tests and make them independent from whatever is printed toSystem.out
andSystem.err
.Why are the changes needed?
Two tests in
hplsql
module (TestHplsqlLocal
andTestHplsqlOffline
) make assertions on the output toSystem.out
andSystem.err
. This makes the tests fragile to any other output that might appear there (see apache/logging-log4j2#2791 for example) and prevents them from running in parallel.Does this PR introduce any user-facing change?
No, no changes to the main code are introduced.
Is the change a dependency upgrade?
No.