Browse Source

Ignore expired licenses in tests to check overall validity (#3495)

pull/3457/head
Addison Beck 2 years ago committed by GitHub
parent
commit
88405fd0ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      test/Core.Test/Models/Business/OrganizationLicenseTests.cs

4
test/Core.Test/Models/Business/OrganizationLicenseTests.cs

@ -39,6 +39,10 @@ public class OrganizationLicenseTests @@ -39,6 +39,10 @@ public class OrganizationLicenseTests
public void OrganizationLicense_LoadedFromDisk_VerifyData_Passes(int licenseVersion)
{
var license = OrganizationLicenseFileFixtures.GetVersion(licenseVersion);
// These licenses will naturally expire over time, but we still want them to be able to test
license.Expires = DateTime.MaxValue;
var organization = OrganizationLicenseFileFixtures.OrganizationFactory();
var globalSettings = Substitute.For<IGlobalSettings>();
globalSettings.Installation.Returns(new GlobalSettings.InstallationSettings

Loading…
Cancel
Save