mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-13 08:25:26 +00:00
Enable CronEvalToolTest.testEnsureDateIsShownInRootLocale (#38394)
The test is now expected to be always passing no matter what the random locale is. This is fixed with using jdk ZoneId.systemDefault() in both the test and CronEvalTool closes #35687
This commit is contained in:
parent
440d1eda8a
commit
df4eb0485d
@ -56,7 +56,6 @@ public class CronEvalToolTests extends CommandTestCase {
|
|||||||
|
|
||||||
// randomized testing sets arbitrary locales and timezones, and we do not care
|
// randomized testing sets arbitrary locales and timezones, and we do not care
|
||||||
// we always have to output in standard locale and independent from timezone
|
// we always have to output in standard locale and independent from timezone
|
||||||
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/35687")
|
|
||||||
public void testEnsureDateIsShownInRootLocale() throws Exception {
|
public void testEnsureDateIsShownInRootLocale() throws Exception {
|
||||||
String output = execute("-c","1", "0 0 11 ? * MON-SAT 2040");
|
String output = execute("-c","1", "0 0 11 ? * MON-SAT 2040");
|
||||||
if (ZoneId.systemDefault().equals(ZoneOffset.UTC)) {
|
if (ZoneId.systemDefault().equals(ZoneOffset.UTC)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user