Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,13 @@ public void testGuessIsDayFirstFromLocale() {
TimestampFormatFinder timestampFormatFinder = new TimestampFormatFinder(explanation, true, true, true, NOOP_TIMEOUT_CHECKER);

// Locale fallback is the only way to decide

// The US locale should work for both FIPS and non-FIPS
assertFalse(timestampFormatFinder.guessIsDayFirstFromLocale(Locale.US));

// Non-US locales may not work correctly in a FIPS JVM - see https://github.com/elastic/elasticsearch/issues/45140
assumeFalse("Locales not reliable in FIPS JVM", inFipsJvm());

assertTrue(timestampFormatFinder.guessIsDayFirstFromLocale(Locale.UK));
assertTrue(timestampFormatFinder.guessIsDayFirstFromLocale(Locale.FRANCE));
assertFalse(timestampFormatFinder.guessIsDayFirstFromLocale(Locale.JAPAN));
Expand Down