[TEST] ensure later license issue date
Original commit: elastic/x-pack-elasticsearch@fcedb7ae18
This commit is contained in:
parent
19c87bd143
commit
4586ca2e06
|
@ -154,7 +154,8 @@ public class LicensesMetaDataSerializationTests extends ESTestCase {
|
|||
assertThat(licensesMetaDataFromXContent.getLicense(), equalTo(signedLicense));
|
||||
|
||||
// license with later issue date is selected
|
||||
License signedLicenseIssuedLater = TestUtils.generateSignedLicense(TimeValue.timeValueHours(2));
|
||||
long laterIssueDate = trialLicense.issueDate() + TimeValue.timeValueHours(2).getMillis();
|
||||
License signedLicenseIssuedLater = TestUtils.generateSignedLicense(laterIssueDate, TimeValue.timeValueHours(2));
|
||||
builder = XContentFactory.jsonBuilder();
|
||||
builder.startObject();
|
||||
builder.startObject("licenses");
|
||||
|
|
Loading…
Reference in New Issue