We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a3e572 commit 697f3afCopy full SHA for 697f3af
src/Tests/XPack/License/GetLicense/GetLicenseApiTests.cs
@@ -36,8 +36,9 @@ protected override void ExpectResponse(IGetLicenseResponse response)
36
{
37
var l = response.License;
38
l.Should().NotBeNull();
39
- l.ExpiryDate.Should().BeAfter(DateTime.UtcNow.AddYears(-2));
40
- l.IssueDate.Should().BeAfter(DateTime.UtcNow.AddYears(-2));
+ var fixedDate = new DateTime(2015, 1, 1);
+ l.ExpiryDate.Should().BeAfter(fixedDate);
41
+ l.IssueDate.Should().BeAfter(fixedDate);
42
l.IssueDateInMilliseconds.Should().BeGreaterThan(0);
43
l.ExpiryDateInMilliseconds.Should().BeGreaterThan(0);
44
l.IssuedTo.Should().NotBeNullOrWhiteSpace();
0 commit comments