Skip to content

Commit 697f3af

Browse files
committed
fixed get license tests now - 2 years assertion, i guess our test license got too old :)
1 parent 7a3e572 commit 697f3af

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Tests/XPack/License/GetLicense/GetLicenseApiTests.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ protected override void ExpectResponse(IGetLicenseResponse response)
3636
{
3737
var l = response.License;
3838
l.Should().NotBeNull();
39-
l.ExpiryDate.Should().BeAfter(DateTime.UtcNow.AddYears(-2));
40-
l.IssueDate.Should().BeAfter(DateTime.UtcNow.AddYears(-2));
39+
var fixedDate = new DateTime(2015, 1, 1);
40+
l.ExpiryDate.Should().BeAfter(fixedDate);
41+
l.IssueDate.Should().BeAfter(fixedDate);
4142
l.IssueDateInMilliseconds.Should().BeGreaterThan(0);
4243
l.ExpiryDateInMilliseconds.Should().BeGreaterThan(0);
4344
l.IssuedTo.Should().NotBeNullOrWhiteSpace();

0 commit comments

Comments
 (0)