Fixed: mono 4.4.2 won't trigger mono version error

pull/2/head
Mark McDowall 8 years ago
parent 1251e294cd
commit 1a61796092

@ -25,6 +25,7 @@ namespace NzbDrone.Core.Test.HealthCheck.Checks
[TestCase("4.0.0.0")]
[TestCase("4.2")]
[TestCase("4.6")]
[TestCase("4.4.2")]
public void should_return_ok(string version)
{
GivenOutput(version);

@ -39,7 +39,7 @@ namespace NzbDrone.Core.HealthCheck.Checks
return new HealthCheck(GetType(), HealthCheckResult.Error, "your mono version 3.4.0 has a critical bug, you should upgrade to a higher version");
}
if (version >= new Version(4, 4, 0) && version < new Version(4, 5))
if (version == new Version(4, 4, 0) || version == new Version(4, 4, 1))
{
_logger.Debug("mono version {0}", version);
return new HealthCheck(GetType(), HealthCheckResult.Error, $"your mono version {version} has a bug that causes issues connecting to indexers/download clients");

Loading…
Cancel
Save