Fixed: mono 4.4.2 won't trigger mono version error

This commit is contained in:
Mark McDowall 2016-11-01 13:08:37 -07:00
parent 1251e294cd
commit 1a61796092
2 changed files with 2 additions and 1 deletions

View File

@ -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);

View File

@ -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");