Skip to content

Commit

Permalink
Enable LicenceServiceTests for all jdks (#49440) backport(#49682)
Browse files Browse the repository at this point in the history
This test no longer relies on jdk version, so the assume should be removed
relates #48209
  • Loading branch information
pgomulka authored Nov 28, 2019
1 parent 326fe75 commit e528b41
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
package org.elasticsearch.license;


import org.elasticsearch.bootstrap.JavaVersion;
import org.elasticsearch.test.ESTestCase;

import java.time.LocalDate;
Expand All @@ -22,8 +21,6 @@
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();
Expand Down

0 comments on commit e528b41

Please sign in to comment.