[TEST] ensure later license issue date

Original commit: elastic/x-pack-elasticsearch@fcedb7ae18
This commit is contained in:
Areek Zillur 2016-01-26 15:49:01 -05:00
parent 19c87bd143
commit 4586ca2e06
1 changed files with 2 additions and 1 deletions

View File

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