More update tests

This commit is contained in:
Qstick
2023-02-19 23:40:53 -06:00
parent 0aedafb278
commit 35f85fc986
2 changed files with 2 additions and 3 deletions

View File

@@ -278,7 +278,7 @@ namespace NzbDrone.Common.Test
[Test] [Test]
public void GetUpdateClientExePath() public void GetUpdateClientExePath()
{ {
GetIAppDirectoryInfo().GetUpdateClientExePath().Should().BeEquivalentTo(@"C:\Temp\prowlarr_update\Prowlarr.Update.exe".AsOsAgnostic()); GetIAppDirectoryInfo().GetUpdateClientExePath().Should().BeEquivalentTo(@"C:\Temp\prowlarr_update\Prowlarr.Update".AsOsAgnostic().ProcessNameToExe());
} }
[Test] [Test]

View File

@@ -40,12 +40,11 @@ namespace NzbDrone.Core.Test.UpdateTests
} }
[Test] [Test]
[Ignore("TODO No Updates On Server")]
public void should_get_recent_updates() public void should_get_recent_updates()
{ {
const string branch = "develop"; const string branch = "develop";
UseRealHttp(); UseRealHttp();
var recent = Subject.GetRecentUpdates(branch, new Version(2, 0), null); var recent = Subject.GetRecentUpdates(branch, new Version(1, 0), null);
var recentWithChanges = recent.Where(c => c.Changes != null); var recentWithChanges = recent.Where(c => c.Changes != null);
recent.Should().NotBeEmpty(); recent.Should().NotBeEmpty();