mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Fixed: Integration tests on Mono 5.12 and 5.14
Mono 5.12 and 5.14 has a bug that means RestSharp can't handle non-200 responses. Fix status api call so tests start and disable the tests that use non-200 responses on these mono versions
This commit is contained in:
@@ -162,6 +162,22 @@ namespace NzbDrone.Integration.Test
|
||||
}
|
||||
}
|
||||
|
||||
protected void IgnoreOnMonoVersions(params string[] version_strings)
|
||||
{
|
||||
if (!PlatformInfo.IsMono)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var current = PlatformInfo.GetVersion();
|
||||
var versions = version_strings.Select(x => new Version(x)).ToList();
|
||||
|
||||
if (versions.Any(x => x.Major == current.Major && x.Minor == current.Minor))
|
||||
{
|
||||
throw new IgnoreException($"Ignored on mono {PlatformInfo.GetVersion()}");
|
||||
}
|
||||
}
|
||||
|
||||
public string GetTempDirectory(params string[] args)
|
||||
{
|
||||
var path = Path.Combine(TempDirectory, Path.Combine(args));
|
||||
|
Reference in New Issue
Block a user