From e528b41cf24904dd795f5a5d059eb7b3804abaea Mon Sep 17 00:00:00 2001 From: Przemyslaw Gomulka Date: Thu, 28 Nov 2019 15:26:54 +0100 Subject: [PATCH] Enable LicenceServiceTests for all jdks (#49440) backport(#49682) This test no longer relies on jdk version, so the assume should be removed relates #48209 --- .../java/org/elasticsearch/license/LicenseServiceTests.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/x-pack/plugin/core/src/test/java/org/elasticsearch/license/LicenseServiceTests.java b/x-pack/plugin/core/src/test/java/org/elasticsearch/license/LicenseServiceTests.java index 57394e647c9..750b3d67c5f 100644 --- a/x-pack/plugin/core/src/test/java/org/elasticsearch/license/LicenseServiceTests.java +++ b/x-pack/plugin/core/src/test/java/org/elasticsearch/license/LicenseServiceTests.java @@ -6,7 +6,6 @@ package org.elasticsearch.license; -import org.elasticsearch.bootstrap.JavaVersion; import org.elasticsearch.test.ESTestCase; import java.time.LocalDate; @@ -22,8 +21,6 @@ import static org.hamcrest.Matchers.startsWith; public class LicenseServiceTests extends ESTestCase { public void testLogExpirationWarning() { - assumeTrue("this is for JDK8 only", JavaVersion.current().equals(JavaVersion.parse("8"))); - long time = LocalDate.of(2018, 11, 15).atStartOfDay(ZoneOffset.UTC).toInstant().toEpochMilli(); final boolean expired = randomBoolean(); final String message = LicenseService.buildExpirationMessage(time, expired).toString();