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

Fix date math zone test to use negative minutes #78796

Merged
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 @@ -126,8 +126,7 @@ public void testExpression_MixedArray() throws Exception {
assertThat(result.get(3), equalTo(".logstash-" +
formatDate("uuuu.MM", dateFromMillis(context.getStartTime()).withDayOfMonth(1))));
}

@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/78783")

public void testExpression_CustomTimeZoneInIndexName() throws Exception {
ZoneId timeZone;
int hoursOffset;
Expand All @@ -138,6 +137,9 @@ public void testExpression_CustomTimeZoneInIndexName() throws Exception {
} else {
hoursOffset = randomIntBetween(-11, 13);
minutesOffset = randomIntBetween(0, 59);
if (hoursOffset < 0) {
minutesOffset = -minutesOffset;
}
timeZone = ZoneOffset.ofHoursMinutes(hoursOffset, minutesOffset);
}
ZonedDateTime now;
Expand Down