Skip to content

Commit

Permalink
Ignore Europe/Kyiv in timezone tests (#105862)
Browse files Browse the repository at this point in the history
Closes #105841
  • Loading branch information
mosche committed Mar 4, 2024
1 parent b8d715a commit 4360618
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ public class DateUtilsTests extends ESTestCase {
"Asia/Qostanay", // part of tzdata2018h
"America/Godthab", // part of tzdata2020a (maps to America/Nuuk)
"America/Nuuk", // part of tzdata2020a
"America/Ciudad_Juarez" // part of tzdata2022g
"America/Ciudad_Juarez", // part of tzdata2022g
"Europe/Kyiv" // part of tzdata2022c
)
);

Expand All @@ -60,13 +61,14 @@ private static boolean maybeIgnore(String jodaId) {
return false;
}

@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/105841")
public void testTimezoneIds() {
assertNull(DateUtils.dateTimeZoneToZoneId(null));
assertNull(DateUtils.zoneIdToDateTimeZone(null));
for (String jodaId : DateTimeZone.getAvailableIDs()) {
if (IGNORE.contains(jodaId) || maybeIgnore(jodaId)) continue;
DateTimeZone jodaTz = DateTimeZone.forID(jodaId);
// some timezones get mapped back to problematic timezones
if (IGNORE.contains(jodaTz.toString())) continue;
ZoneId zoneId = DateUtils.dateTimeZoneToZoneId(jodaTz); // does not throw
long now = 0;
assertThat(
Expand Down

0 comments on commit 4360618

Please sign in to comment.