Enable CronEvalToolTest.testEnsureDateIsShownInRootLocale ()

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 
This commit is contained in:
Przemyslaw Gomulka 2019-02-05 17:48:47 +01:00 committed by GitHub
parent 440d1eda8a
commit df4eb0485d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)) {