Skip to content
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

Ignore 2 tests that assume that the system language is English, if that should not be the case #4102

Merged

Conversation

daniellehrner
Copy link
Contributor

Signed-off-by: Daniel Lehrner daniel.lehrner@consensys.net

PR description

2 of our tests that check error messages from the JVM assume that the system language is always English. If that is not the case, the JVM error messages will be localized and the tests will fail. This PR checks the system language before running those 2 tests and ignores them, if it is not English. If the system language is English the tests are executed like before.

Fixed Issue(s)

fixes #2190

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if
    updates are required.

Changelog

…at should not be the case

Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
@daniellehrner daniellehrner changed the title ignore 2 tests that assume that the system language is English, if that should not be the case Ignore 2 tests that assume that the system language is English, if that should not be the case Jul 14, 2022
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
@daniellehrner daniellehrner marked this pull request as ready for review July 14, 2022 11:48
@daniellehrner daniellehrner added the dev experience The build system, things that enable easier development etc. label Jul 14, 2022
@fab-10
Copy link
Contributor

fab-10 commented Jul 14, 2022

instead of ignoring, could be an option to force the tests to run with the english locale?

Copy link
Contributor

@fab-10 fab-10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, please check my comment on setting the locale for those test if possible

@daniellehrner daniellehrner merged commit 2c26259 into hyperledger:main Jul 14, 2022
@daniellehrner daniellehrner deleted the fix_build_on_non_english_systems branch July 14, 2022 16:16
codyborn pushed a commit to codyborn/besu that referenced this pull request Jul 31, 2022
…at should not be the case (hyperledger#4102)

* ignore 2 tests that assume that the system language is English, if that should not be the case

Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
codyborn pushed a commit to codyborn/besu that referenced this pull request Jul 31, 2022
…at should not be the case (hyperledger#4102)

* ignore 2 tests that assume that the system language is English, if that should not be the case

Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
Signed-off-by: Cody Born <codyborn@outlook.com>
eum602 pushed a commit to lacchain/besu that referenced this pull request Nov 3, 2023
…at should not be the case (hyperledger#4102)

* ignore 2 tests that assume that the system language is English, if that should not be the case

Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev experience The build system, things that enable easier development etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unit tests fail if system language is not English
2 participants