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

Locale-dependent test #78

Closed
andrioni opened this issue Feb 23, 2015 · 2 comments
Closed

Locale-dependent test #78

andrioni opened this issue Feb 23, 2015 · 2 comments

Comments

@andrioni
Copy link

Hello! This DateMessageParser test is locale-dependent, and fails in non-English locales (which is how I discovered it!).

What would the best solution for this issue? Adding a new locale parameter (e.g. message.timestamp.locale) or just removing the test?

@pgarbacki
Copy link
Contributor

Although it is a bit ugly from the stylistic point of view, you could
change the default locale
http://docs.oracle.com/javase/7/docs/api/java/util/Locale.html#setDefault(java.util.Locale)
for that test, and then change it back.

On Mon, Feb 23, 2015 at 1:44 PM, Alessandro Andrioni <
notifications@github.com> wrote:

Hello! This DateMessageParser test
https://github.com/pinterest/secor/blob/master/src/test/java/com/pinterest/secor/parser/DateMessageParserTest.java#L53-L55
is locale-dependent, and fails in non-English locales (which is how I
discovered it!).

What would the best solution for this issue? Adding a new locale parameter
(e.g. message.timestamp.locale) or just removing the test?


Reply to this email directly or view it on GitHub
#78.

@pgarbacki
Copy link
Contributor

@zago would you mind taking a look at this test?

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 a pull request may close this issue.

3 participants