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

Make sure tests reset the default locale #917

Merged
merged 1 commit into from
Nov 27, 2018
Merged

Conversation

rdeltour
Copy link
Member

@rdeltour rdeltour commented Nov 26, 2018

Some tests were setting the default Locale, but were not setting it back to the original value. This side effect caused later localization tests to fail.

This PR fixes that by making sure the default locale is reset, in a finally block, whenever it is explicitly set in tests.

Fixes #916

Some tests were setting the default Locale, but were not setting it
back to the original value.
This side effect caused later localization tests to fail.

This PR fixes that by making sure the default locale is reset, in a
`finally` block, whenever it is explicitly set in tests.

Fixes #916
@rdeltour rdeltour added this to the 4.1.1 milestone Nov 26, 2018
@rdeltour rdeltour self-assigned this Nov 26, 2018
@rdeltour rdeltour requested a review from tofi86 November 26, 2018 23:57
Copy link
Collaborator

@tofi86 tofi86 left a comment

Choose a reason for hiding this comment

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

Approved. Tests are running fine.

@tofi86
Copy link
Collaborator

tofi86 commented Nov 27, 2018

Looks good to me.

Would have taken me a while to find this out. I was still hanging on the weird en_DE locale yesterday...

Go ahead and merge.

@rdeltour rdeltour merged commit 1a159f8 into master Nov 27, 2018
@rdeltour rdeltour deleted the test/reset-default-locale branch November 27, 2018 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Maven tests failing for localization changes in 4.1.0
2 participants