Enable LicenceServiceTests for all jdks (#49440) backport(#49682)

This test no longer relies on jdk version, so the assume should be removed
relates #48209
This commit is contained in:
Przemyslaw Gomulka 2019-11-28 15:26:54 +01:00 committed by GitHub
parent 326fe7566e
commit e528b41cf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -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();