From 88405fd0ef8a5f0297a050def88f1f99f599f189 Mon Sep 17 00:00:00 2001 From: Addison Beck Date: Thu, 30 Nov 2023 14:49:49 -0600 Subject: [PATCH] Ignore expired licenses in tests to check overall validity (#3495) --- test/Core.Test/Models/Business/OrganizationLicenseTests.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/Core.Test/Models/Business/OrganizationLicenseTests.cs b/test/Core.Test/Models/Business/OrganizationLicenseTests.cs index d5067a2e5..c2eb0dd93 100644 --- a/test/Core.Test/Models/Business/OrganizationLicenseTests.cs +++ b/test/Core.Test/Models/Business/OrganizationLicenseTests.cs @@ -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(); globalSettings.Installation.Returns(new GlobalSettings.InstallationSettings