Skip to content

Commit 71958fc

Browse files
committed
update tests
1 parent 84d5f5e commit 71958fc

File tree

1 file changed

+2
-3
lines changed
  • x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/scalar/date

1 file changed

+2
-3
lines changed

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/scalar/date/DayNameTests.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ public DayNameTests(@Name("TestCase") Supplier<TestCaseSupplier.TestCase> testCa
4545

4646
@ParametersFactory
4747
public static Iterable<Object[]> parameters() {
48-
long ts = toMillis("2023-02-17T10:25:33.38Z");
4948
List<TestCaseSupplier> suppliers = new ArrayList<>();
5049
suppliers.addAll(generateTest("2019-03-11T00:00:00.00Z", "Monday"));
5150
suppliers.addAll(generateTest("2022-07-26T23:59:59.99Z", "Tuesday"));
@@ -119,9 +118,9 @@ public void testRandomLocale() {
119118
}
120119

121120
public void testFixedLocaleAndTime() {
122-
long randomMillis = toMillis("2019-03-12T00:00:00.00Z");
121+
long randomMillis = toMillis("2019-03-16T00:00:00.00Z");
123122
Configuration cfg = configWithZoneAndLocale(ZoneId.of("America/Sao_Paulo"), Locale.of("pt", "br"));
124-
String expected = "segunda-feira";
123+
String expected = "sexta-feira";
125124

126125
DayName func = new DayName(Source.EMPTY, new Literal(Source.EMPTY, randomMillis, DataType.DATETIME), cfg);
127126
assertThat(BytesRefs.toBytesRef(expected), equalTo(func.fold(FoldContext.small())));

0 commit comments

Comments
 (0)